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.
Summary: |
((ClassTree) path.getLeaf()).getModifiers().getFlags() always returns ["public", "static] for nested classes/interfaces within interfaces |
Product: |
java
|
Reporter: |
markiewb |
Component: |
Compiler | Assignee: |
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
|
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)