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.
NB 6.0 dev 060830 It looks like the IDE does not recognize sun-specific packages. Given that the attached code is valid for the target JDK (tried Sun's 1.5.0_08/BEA 1.5.0_06/IBM 1.4.2), I can't make the IDE complete the sun.reflect package and Fix Imports fails with "No imports found for the following types: - sun". I understand perfectly that using this type of classes/packages is bad practice, but it's valid and the IDE should not deny it. A warning in the editor (saying something like "using this class is vendor-specific and breaks portability blah-blah") would be a good-mannered behavior. PS Not sure about the category, please reassign if I missed the correct one.
Created attachment 34358 [details] Sample code
You're right. It looks like part of JDK jars is not parsed. If I browse the JDK jars under Library node and unfold sun.reflect package (can be found in rt.jar) it starts to work.
It is said that setting -J-Dorg.netbeans.javacore.ignorePackages=\"\" should fix the problem, but it does not work for me. Btw, is there a (somewhat) complete list of system properties recognized by NetBeans?
Javacore module was replaced by Retouche infrastructure. This bug is not valid in trunk any more.
Reorganization of java component