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 2642 - Clazz-loader`s ClassElementImpl does not filter out JDK 1.1 .class artifacts.
Summary: Clazz-loader`s ClassElementImpl does not filter out JDK 1.1 .class artifacts.
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: All All
: P4 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1999-07-21 22:12 UTC by Jesse Glick
Modified: 2008-12-23 10:59 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 1999-07-21 22:12:45 UTC
If you open a ClassDataNode for a class which uses JDK 1.1 class references (Foo.class), you will see the class$pkg$Foo variable and the $class method, which are supposed to be artifacts of the impl
ementation, not user-visible. ClassElementImpl.create*Map should remove such items from the list it generates.

[Dafe] I tried classes from jdk 1.1.7A and it seems to be ok. Could you point me to some classes that caused described behaviour? Thanx,

[jglick] Sorry, did not make description clear enough. Create some class containing anywhere (in some random method) text such as:

// ...
System.err.println (java.io.File.class);
// ....

Compile it, and remove the .java. Now look at the ClassDataNode inside NB that the .class file made. It will have a field named "class$java$io$File" and a method named "class$". Neither should be disp
layed, because they are created by the compiler only.


JLS with 1.1 inner-classes spec describes what these fields can be named, I think.
Comment 1 Marek Grummich 2000-07-25 09:19:59 UTC
Priority is changed to P4 (normal).
Comment 2 Quality Engineering 2003-07-02 14:56:29 UTC
Resolved for 3.4.x or earlier, no new info since then -> verify.
Comment 3 Quality Engineering 2003-07-02 15:18:33 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.