This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 219204 - Incorrect error shown where none actually exists
Summary: Incorrect error shown where none actually exists
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-28 22:21 UTC by Chiana
Modified: 2015-09-17 12:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Showing incorrect hint and source. (57.73 KB, image/jpeg)
2012-09-28 22:21 UTC, Chiana
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chiana 2012-09-28 22:21:18 UTC
[ JDK VERSION : 1.7.7 ]

As you can see on the screendump the IDE signals an error on line 130. There is
however nothing wrong with that line, the error indicated is "Inconvertible
types".
Comment 1 Chiana 2012-09-28 22:21:58 UTC
Created attachment 125083 [details]
Showing incorrect hint and source.
Comment 2 Chiana 2012-09-29 00:34:39 UTC
I think I can shed some extra light on this.

The class WindowsRegistryError extends WindowsRegistryHandle, both are defined in an external project (WinReg) that is included in this project (Service).
However WindowsRegistryHandle extends IntByReference a class that is defined in jna.jar that is included into the WinReg project. The Service project does not use JNA so it is not included into that.
Just to check I added jna.jar into Service and the error marking dissapeared.
So the error seems to be that if the class extends a class that is not include into the same project Netbeans thinks it is an error but according to the compiler itself it is not, or something similar...
Comment 3 Martin Balin 2015-09-17 11:15:59 UTC
Report from old NetBeans version. Due to code changes since it was reported likely not reproducible now. Feel free to reopen if happens in 8.0.2 or 8.1.
Comment 4 Chiana 2015-09-17 12:43:47 UTC
Also report was made 3 years ago...