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 51113 - getModifiers() always returns 0
Summary: getModifiers() always returns 0
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: All All
: P1 blocker (vote)
Assignee: Tomas Hurka
URL:
Keywords: REGRESSION
: 51156 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-11-03 08:34 UTC by Tomas Hurka
Modified: 2006-03-24 10:04 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Dump taken with 200411072021 (19.10 KB, text/plain)
2004-11-09 15:35 UTC, gugrim
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Hurka 2004-11-03 08:34:16 UTC
org.openide.src elements created from class files has broken 
getModifiers() method. This is regression caused by fix of issue 
#50903.
Comment 1 Tomas Hurka 2004-11-03 08:42:22 UTC
Fixed in trunk.

Checking in org/netbeans/modules/clazz/MemberElementImpl.java;
/cvs/clazz/src/org/netbeans/modules/clazz/MemberElementImpl.java,v  <--  
MemberElementImpl.java
new revision: 1.34; previous revision: 1.33
done
Comment 2 Martin Matula 2004-11-03 12:36:57 UTC
I have reviewed the proposed fix and agree with it.
Comment 3 Jiri Rechtacek 2004-11-04 12:17:27 UTC
Verified it works, I have tested ClassElement.hasMainMethod().
Comment 4 Martin Matula 2004-11-04 14:44:09 UTC
*** Issue 51156 has been marked as a duplicate of this issue. ***
Comment 5 Tomas Hurka 2004-11-05 13:11:35 UTC
Fixed also in release40 branch.

Checking in MemberElementImpl.java;
/cvs/clazz/src/org/netbeans/modules/clazz/MemberElementImpl.java,v  <--  
MemberElementImpl.java
new revision: 1.33.2.1; previous revision: 1.33
done
Comment 6 gugrim 2004-11-09 15:35:50 UTC
Created attachment 18805 [details]
Dump taken with 200411072021
Comment 7 gugrim 2004-11-09 15:39:08 UTC
Disregard the last dump. Sometimes the "Create a new attachment" link
points to another issue.