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 - Type error not shown in Java editor when calling method with wrong argument type involving an inferred type
Summary: Type error not shown in Java editor when calling method with wrong argument t...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.2
Hardware: PC Mac OS X
: P3 normal with 1 vote (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-30 18:49 UTC by ebakke
Modified: 2017-06-28 01:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Example Java file with type errors which are not displayed by the NetBeans Java editor (647 bytes, application/octet-stream)
2016-12-30 18:49 UTC, ebakke
Details
Example Java file with type errors which are not displayed by the NetBeans Java editor (647 bytes, text/plain)
2016-12-30 18:50 UTC, ebakke
Details

Note You need to log in before you can comment on or make changes to this bug.
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.