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 - compiling with "-source 1.5" for generics
Summary: compiling with "-source 1.5" for generics
Status: RESOLVED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-18 20:27 UTC by thedog
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.