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 85528 - No code completion or fix imports for sun.reflect package
Summary: No code completion or fix imports for sun.reflect package
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-22 07:29 UTC by Kirill Sorokin
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Sample code (507 bytes, text/plain)
2006-09-22 07:30 UTC, Kirill Sorokin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kirill Sorokin 2006-09-22 07:29:03 UTC
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.
Comment 1 Kirill Sorokin 2006-09-22 07:30:00 UTC
Created attachment 34358 [details]
Sample code
Comment 2 Jiri Prox 2006-09-22 08:42:33 UTC
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.
Comment 3 Kirill Sorokin 2006-09-22 09:52:03 UTC
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?
Comment 4 Jan Becicka 2006-10-26 16:27:37 UTC
Javacore module was replaced by Retouche infrastructure. This bug is not valid
in trunk any more.
Comment 5 Quality Engineering 2007-09-20 12:45:13 UTC
Reorganization of java component