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 54553 - Generics: Editor flags 1.5 error even when running on tiger
Summary: Generics: Editor flags 1.5 error even when running on tiger
Status: RESOLVED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Pavel Flaska
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-04 14:03 UTC by _ bharathch
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of the source editor wrongly displaying a warning (77.56 KB, image/jpeg)
2005-02-04 14:04 UTC, _ bharathch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ bharathch 2005-02-04 14:03:21 UTC
The source editor indicates a "generics not
supported in source 1.4" in the tooltip even when
the platform used is J2SE 5 (stable release). Note
that the code compiles fine.It is only the
validation in the background that does not seem to
consider the fact that 1.5 is being used. A
screenshot is included.
Comment 1 _ bharathch 2005-02-04 14:04:56 UTC
Created attachment 20200 [details]
Screenshot of the source editor wrongly displaying a warning
Comment 2 David Simonek 2005-02-04 14:10:39 UTC
Passing to editor.
Comment 3 Dusan Balek 2005-02-07 10:42:39 UTC
Error annotations are provided by javacore. Reassigning.
Comment 4 Pavel Flaska 2005-02-10 13:07:33 UTC
My steps how to reproduce issue:
1) run netbeans on jdk 1.4.2,
2) add 1.5 platform,
3) create project, set 1.5 platform.

If I ran netbeans on 1.5, it worked correctly. Seems to me that
SourceLevelQuery.getSourceLevel() does not return source level correctly.
Comment 5 Pavel Flaska 2005-02-10 13:41:52 UTC
So the problem is, that you shouldn't only change platform! You have
to set also source-level. Goto project properties, select Sources
catagory and set the source-level combo to 1.5. This should help you.
Comment 6 Quality Engineering 2007-09-20 10:46:11 UTC
Reorganization of java component