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 214145 - wrong error for Java source level
Summary: wrong error for Java source level
Status: RESOLVED DUPLICATE of bug 214131
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-13 16:24 UTC by gholmer
Modified: 2012-06-13 16:31 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (53.62 KB, image/png)
2012-06-13 16:24 UTC, gholmer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gholmer 2012-06-13 16:24:01 UTC
Created attachment 120795 [details]
screenshot

Java project is set to source level 1.5; editor flags errors with tooltip "generics are not supported in -source 1.3". See attached screenshot.

The following appears in the NetBeans log file:

Even though the source level of /mnt/common/netbeans/weborder/src is set to: 1.5, java.lang.AssertionError cannot be found on the bootclasspath: /usr/lib/jdk1.7.0_04/jre/lib/resources.jar:/usr/lib/jdk1.7.0_04/jre/lib/rt.jar:/usr/lib/jdk1.7.0_04/jre/lib/sunrsasign.jar:/usr/lib/jdk1.7.0_04/jre/lib/jsse.jar:/usr/lib/jdk1.7.0_04/jre/lib/jce.jar:/usr/lib/jdk1.7.0_04/jre/lib/charsets.jar:/usr/lib/jdk1.7.0_04/jre/lib/jfr.jar:/usr/lib/jdk1.7.0_04/jre/classes:/usr/lib/jdk1.7.0_04/jre/lib/ext/dnsns.jar:/usr/lib/jdk1.7.0_04/jre/lib/ext/sunjce_provider.jar:/usr/lib/jdk1.7.0_04/jre/lib/ext/localedata.jar:/usr/lib/jdk1.7.0_04/jre/lib/ext/sunec.jar:/usr/lib/jdk1.7.0_04/jre/lib/ext/zipfs.jar:/usr/lib/jdk1.7.0_04/jre/lib/ext/sunpkcs11.jar
Changing source level to 1.3

Java Platform Manager shows "JDK 1.7 (Default)", pointing to the correct location where I have 7u4 installed (/usr/lib/java, which is a symlink to /usr/lib/jdk1.7.0_04).
Comment 1 Jan Lahoda 2012-06-13 16:31:46 UTC
Bug #214131 is the root cause, AFAIK.

*** This bug has been marked as a duplicate of bug 214131 ***