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 86556 - javac.util.FatalError upon opening project with different Java platform
Summary: javac.util.FatalError upon opening project with different Java platform
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: Sun Solaris
: P3 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
: 87070 88015 (view as bug list)
Depends on:
Blocks: 87136
  Show dependency tree
 
Reported: 2006-10-05 11:50 UTC by Max Sauer
Modified: 2007-01-17 10:09 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
stack trace (3.42 KB, text/plain)
2006-10-05 11:52 UTC, Max Sauer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Max Sauer 2006-10-05 11:50:40 UTC
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
Comment 1 Max Sauer 2006-10-05 11:52:08 UTC
Created attachment 34904 [details]
stack trace
Comment 2 Jan Lahoda 2006-10-06 12:07:45 UTC
Tomas, I supposed that when a platform cannot be found, the default platform is
used. No?
Comment 3 Tomas Zezula 2006-10-06 13:23:21 UTC
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.
Comment 4 Jan Lahoda 2006-10-13 09:50:40 UTC
*** Issue 87070 has been marked as a duplicate of this issue. ***
Comment 5 Jiri Prox 2006-10-26 10:42:37 UTC
*** Issue 88015 has been marked as a duplicate of this issue. ***
Comment 6 Tomas Zezula 2006-10-26 11:01:42 UTC
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
Comment 7 Max Sauer 2006-10-30 10:46:49 UTC
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