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 269459

Summary: Type error not shown in Java editor when calling method with wrong argument type involving an inferred type
Product: java Reporter: ebakke
Component: EditorAssignee: 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

Description ebakke 2016-12-30 18:49:28 UTC
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.
Comment 1 ebakke 2016-12-30 18:50:24 UTC
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).
Comment 2 ebakke 2017-06-11 12:44:13 UTC
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.
Comment 4 ebakke 2017-06-26 18:26:27 UTC
Whoo--thank you!!
Comment 5 Quality Engineering 2017-06-28 01:49:16 UTC
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.