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.
Opening a project, which is set up for platform currently not aviable to the IDE produces following FatalError: ... com.sun.tools.javac.util.FatalError: Fatal Error: Unable to find package java.lang in classpath or bootclasspath at com.sun.tools.javac.comp.MemberEnter.importAll(MemberEnter.java:123) at com.sun.tools.javac.comp.MemberEnter.visitTopLevel(MemberEnter.java:509) at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:446) at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:387) ... (whole stack trace attached) This does not break anything, but we should handle this more gracefully and consume this error, as we probably used to inside 'classic' editor, since it does not happen inside 5.5 builds. Steps to reproduce: ------------------- 1) Create a j2se project ie. in NB 5.5 and select ie. JDK 1.4.2 as default platform 2) Open the created project inside retouche --- NetBeans IDE Dev (Build 061005) 1.6.0-rc; Java HotSpot(TM) Client VM 1.6.0-rc-b99 SunOS version 5.10 running on sparc en (nb); ISO646-US
Created attachment 34904 [details] stack trace
Tomas, I supposed that when a platform cannot be found, the default platform is used. No?
It was in this way to the Netbeans 5.0, then it was changed because there were complains that the default platform is scanned even when not needed.
*** Issue 87070 has been marked as a duplicate of this issue. ***
*** Issue 88015 has been marked as a duplicate of this issue. ***
IDE:------------------------------------------------- IDE: [10/26/06 12:02 PM] Committing "Java Source" started Checking in ClasspathInfo.java; /cvs/java/source/src/org/netbeans/api/java/source/ClasspathInfo.java,v <-- ClasspathInfo.java new revision: 1.3; previous revision: 1.2 done IDE: [10/26/06 12:02 PM] Committing "Java Source" finished
It works OK now. Verified. --- NetBeans IDE Dev (Build 061030) 1.6.0-rc; Java HotSpot(TM) Server VM 1.6.0-rc-b103 Linux version 2.6.12-1.1390_FC4smp running on i386 en_US (nb); UTF-8