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.
[200110100100] ClassElement.forName does not return always the same reference. This behavior is not deterministic :-( Test case: org.openide.src.ClassElement ce = org.openide.src.ClassElement.forName ("integrity.test.TopLevelClass$InnerClass"); for (int i=0;i<LOOPCOUNT;i++){ if (ce!=org.openide.src.ClassElement.forName ("integrity.test.TopLevelClass$InnerClass")){ System.out.println("forName returned wrong reference!"); } System.gc(); Thread.currentThread().sleep(i*500); }
ClassElement.forName() sometimes returns null. IMO it could be caused by some too lazy initialization.
Does it "only" return null sometimes, or does it return something other valid ClassElement reference ?
I cannot reproduce this bug in latest builds. Changing resolution to WORKSFORME.
Resolved for 3.3.x or earlier, no new info since then -> closing.
Resolved for 3.4.x or earlier, no new info since then -> closing.