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

Summary: NetBeans says: "Constant name does not follow naming conventions", — if a constant name contains digits between underscores.
Product: java Reporter: wissenstein <wissenstein>
Component: HintsAssignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: normal    
Priority: P4    
Version: 8.1   
Hardware: PC   
OS: Windows 10   
Issue Type: DEFECT Exception Reporter:

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