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.
Summary: | Type error not shown in Java editor when calling method with wrong argument type involving an inferred type | ||
---|---|---|---|
Product: | java | Reporter: | ebakke |
Component: | Editor | Assignee: | Dusan Balek <dbalek> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 8.2 | ||
Hardware: | PC | ||
OS: | Mac OS X | ||
See Also: |
https://netbeans.org/bugzilla/show_bug.cgi?id=235958 https://netbeans.org/bugzilla/show_bug.cgi?id=258801 |
||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
Example Java file with type errors which are not displayed by the NetBeans Java editor
Example Java file with type errors which are not displayed by the NetBeans Java editor |
Created attachment 163316 [details]
Example Java file with type errors which are not displayed by the NetBeans Java editor
Example Java file with type errors which are not displayed by the NetBeans Java editor (reupload to fix MIME type).
This bug is still present in NetBeans 8.2 Patch 2, with both the user dir and cache dir removed prior to running the IDE. The problem appears both in Maven and Ant projects, created freshly from scratch. Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/21a01aaf51f7 http://hg.netbeans.org/main/nb-javac/rev/1dba5382f105 Whoo--thank you!! Integrated into 'main-silver', will be available in build *201706280001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/21a01aaf51f7 User: Dusan Balek <dbalek@netbeans.org> Log: Issues #269459 and #270849 fixed. |
Created attachment 163315 [details] Example Java file with type errors which are not displayed by the NetBeans Java editor See the attached Java file. It has type errors in both calls to someFunc, but the NetBeans Java editor fails to display the errors on the correct lines in the code editor (I expect wavy red lines and an icon in the line number gutter). The error icon badge is shown on the overall file's icon in the Projects side pane, though. I believe this behavior is new for NetBeans 8.2. It would be very nice if it could be fixed--these kinds of type errors are very common during refactoring (e.g. when changing the argument of a function from a List to a Map), and the ability to see the errors highlighted in the editor is invaluable.