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 239393

Summary: ((ClassTree) path.getLeaf()).getModifiers().getFlags() always returns ["public", "static] for nested classes/interfaces within interfaces
Product: java Reporter: markiewb
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.4   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: Failing testcase

Description markiewb 2013-12-12 00:20:35 UTC
Created attachment 143084 [details]
Failing testcase

For example:

<code>
public interface IFoo {
    class InnerClass {}
}
</code>

For "InnerClass" there are no modifiers in sourcecode, but when querying via API there are modifiers. ((ClassTree) path.getLeaf()).getModifiers().getFlags() always returns ["public", "static] for nested classes/interfaces within interfaces 
I cannot distinguish if the sourcecode contains modifiers.


ACTUAL: ((ClassTree) path.getLeaf()).getModifiers().getFlags() always returns ["public", "static] for nested classes/interfaces within interfaces

EXPECTED: ((ClassTree) path.getLeaf()).getModifiers().getFlags() returns the modifiers from the sourcecode

Please also see the failing testcase in the attachment.


Product Version: NetBeans IDE 7.4 (Build 201310111528)
Updates: NetBeans IDE is updated to version , NetBeans 7.4 Patch 1
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 markiewb 2016-07-05 23:05:56 UTC
@Dusan: Any news here?