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 - ((ClassTree) path.getLeaf()).getModifiers().getFlags() always returns ["public", "static] for nested classes/interfaces within interfaces
Summary: ((ClassTree) path.getLeaf()).getModifiers().getFlags() always returns ["publi...
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-12 00:20 UTC by markiewb
Modified: 2016-07-05 23:05 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Failing testcase (4.46 KB, application/octet-stream)
2013-12-12 00:20 UTC, markiewb
Details

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