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 59039

Summary: compiling with "-source 1.5" for generics
Product: java Reporter: thedog <thedog>
Component: UnsupportedAssignee: issues@java <issues>
Status: RESOLVED INVALID    
Severity: blocker    
Priority: P3    
Version: 4.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description thedog 2005-05-18 20:27:10 UTC
Trying to use a generic from jdk 1.5, e.g. Comparator<String>
results in "try using -source 1.5".

The source compiles just fine using javac directly, with no "source" option.
Configuration shows I'm using JDK 1.5, AND -source 1.5 already!

Code display (editor) shows a problem with the source line,
again suggesting "-source 1.5".

java version "1.5.0_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_02-b09)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_02-b09, mixed mode)
Comment 1 Milan Kubec 2005-05-30 09:36:14 UTC
Reassigning for evaluation.
Comment 2 Jan Becicka 2005-08-25 09:22:27 UTC
Go to Project Properties of your project, select Sources Node and set Source
Level to 1.5.
I hope it helps.