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 262614 - NetBeans says: "Constant name does not follow naming conventions", — if a constant name contains digits between underscores.
Summary: NetBeans says: "Constant name does not follow naming conventions", — if a con...
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 8.1
Hardware: PC Windows 10
: P4 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-29 13:50 UTC by wissenstein
Modified: 2016-06-29 14:28 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 wissenstein 2016-06-29 13:50:58 UTC
Product Version = NetBeans IDE 8.1 (Build 201510222201)
Operating System = Windows 10 version 10.0 running on amd64
Java; VM; Vendor = 1.8.0_92
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.92-b14

Reproducibility: null

STEPS:
  * Create a new Maven project in NetBeans.
  * Create the following class in the project:

public class FooBar {

    public static final String FOO_M1_BAR = "foobar";
    public static final String FOO_42 = "foo";
    public static final String FOO_42_BAR = "bar";
}

ACTUAL:
  NetBeans underlines name FOO_42_BAR and marks its line with a yellow triangle. When hovering over the triangle mark, the following hint is displayed: "Constant name does not follow naming conventions: FOO_42_BAR".

EXPECTED:
  Nothing is marked as wrong