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.
Build: NetBeans IDE Dev (Build 200906011401) VM: Java HotSpot(TM) 64-Bit Server VM, 1.6.0_07-b06-57, Java(TM) SE Runtime Environment, 1.6.0_07-b06-153 OS: Mac OS X, 10.5.7, x86_64 User Comments: petermount: Referencing a method from an inner class Stacktrace: java.lang.IllegalArgumentException: uk.org.retep.util.reference.DelayedWeakLinkedList.Entry at com.sun.tools.javac.model.JavacTypes.getDeclaredType(JavacTypes.java:221) at org.netbeans.modules.java.hints.errors.Utilities.resolveCapturedTypeInt(Utilities.java:415) at org.netbeans.modules.java.hints.errors.Utilities.resolveCapturedType(Utilities.java:385) at org.netbeans.modules.java.hints.errors.AddCast.computeType(AddCast.java:177) at org.netbeans.modules.java.hints.errors.AddCast.run(AddCast.java:191) at org.netbeans.modules.java.hints.infrastructure.CreatorBasedLazyFixList.compute(CreatorBasedLazyFixList.java:144)
Created attachment 83129 [details] stacktrace
Do not use Types.getDeclaredType(TypeElement typeElem, TypeMirror... typeArgs) if the typeElem's enclosing type is parameterized. Use Types.getDeclaredType(DeclaredType containing, TypeElement typeElem, TypeMirror... typeArgs) instead. Reassigning.
I have a fix prepared. Will become part of my next push.
Fixed. --- http://hg.netbeans.org/jet-main/rev/75b7e26f9727
Integrated into 'main-golden', will be available in build *200906261401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/75b7e26f9727 User: Max Sauer <msauer@netbeans.org> Log: #166466: IAE at Utilities.resolveCapturedTypeInt
v.
The fix has been ported into the release67_fixes repository. http://hg.netbeans.org/release67_fixes/rev/704b7b54f888
v. in 6.7.1