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 269419 - Erroneous enum code not highlighted in editor
Summary: Erroneous enum code not highlighted in editor
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.2
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-23 05:55 UTC by bht
Modified: 2017-01-19 13:20 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bht 2016-12-23 05:55:33 UTC
The following code does not compile. The editor does not show any error badges except in the editor tab. The file is marked erroneous in the project window.

public class Main {
    public enum Case{
        CASE_1,
        CASE_2;
        public final String description;
        private Case(String description) {
            this.description = description;
        }
    }
}