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 85614 - [55cat] Source code stay 1.6 even selecting 1.5 when creating the project
Summary: [55cat] Source code stay 1.6 even selecting 1.5 when creating the project
Status: RESOLVED INVALID
Alias: None
Product: javaee
Classification: Unclassified
Component: EJB Project (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Andrei Badea
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-22 23:32 UTC by brviking
Modified: 2006-10-02 17:16 UTC (History)
2 users (show)

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 brviking 2006-09-22 23:32:51 UTC
[ BUILD # : 200609200000 ]
[ JDK VERSION : 1.6 ]

Create a new EJB Project. Select J2EE 5 and 1.5 level for a Glassfish server.
Create a new web service using annotations.
Right click project -> build.
Output shows error during compilation about "invalid source level 1.6" (not sure the error message).
Right click project->Properties->Source select (again) 1.5 (it's already 1.5 but is necessary to click on combo and select again).
Now build works fine.
Comment 1 Martin Schovanek 2006-09-25 09:21:55 UTC
Should be fix for release55, increasing priority to P2.
Comment 2 Petr Jiricka 2006-09-25 10:57:44 UTC
I can not reproduce this issue with NetBeans 5.5 build 20060925. Was this with a
clean user directory, or did you use an older one? Can you please try on the
latest build with an empty userdir? Also, do you have multiple JDKs registered
in the IDE, or just 1.6? Thanks. 
Comment 3 Andrei Badea 2006-09-25 16:40:59 UTC
I can't reproduce it either. Please create a new project, generate the web
service and build the project. Then please zip up the project (without cleaning
it first) and attach it to this issue. Please use the latest daily build. Thanks.!
Comment 4 brviking 2006-09-26 14:52:32 UTC
Hi!
I had two JDK 1.5.0_08 and JDK 1.6.0 b95.
Unfortunatelly, the b95 has causing several problems to me bcs the XML bug on
JDK it self. I upgraded to b99 right now (the first release that solves the
problem with XML is b98, AFAIK), and will check if the problem go away.
Sorry for delay.
Comment 5 Andrei Badea 2006-10-02 14:20:45 UTC
Any update on this?
Comment 6 brviking 2006-10-02 14:38:16 UTC
Hi!
I discovered this development machina had JDK 1.6.0 b94. I upgraded to JDK 1.6.0
b99, and NB 200609230000, and the problem has gone.
I'm sure the problem is the JDK - due the XML bug present in there, it was
causing several other problems for me - not NB.
Sorry for the inconvenience.
Comment 7 Andrei Badea 2006-10-02 17:16:23 UTC
No problem, thanks for the info.