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 228228 - Set Source Level to 6 has no effect
Summary: Set Source Level to 6 has no effect
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: WebLogic (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-04 04:23 UTC by chase
Modified: 2013-04-09 06:59 UTC (History)
1 user (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 chase 2013-04-04 04:23:27 UTC
While creating a Web Project I uncheck "Set Source Level to 6" but the resulting project still has the Source/Binary Format set to JDK6.

I'm using a Java EE 6 application server that is supported on JDK 7 (WebLogic 12c) and only have one JDK installed (jdk1.7.0_17).

The help displayed by the Help button when creating a project is missing a description for "Set Source Level to 6" but I'm assuming that it should allow my project to default to JDK7 source/binary format when unchecked.

So far I can't detect that the "Set Source Level to 6" checkbox has any impact on the project.
Comment 1 David Konecny 2013-04-08 00:05:49 UTC
I recently noticed this myself while updating logic of the code for EE7. If I remember well I completely changed it and it should work now as advertised in the UI. Needs to be retested in 7.3.1 release.
Comment 2 chase 2013-04-08 15:57:45 UTC
Just tested with Build 201304042355 and now it is even worse. The checkbox is gone and is replaced by text that says "Note: Source Level 6 will be set for Java EE 6 projects.".

I use Java SE 7 features in my EE 6 apps! It doesn't matter if EE 6 originally only required SE 6. SE 6 is now EOL. I have only SE 7 installed and my server (WLS) is certified to run on SE 7. Why are you forcing my projects to SE 6 by default? It makes no sense.
Comment 3 David Konecny 2013-04-09 02:05:54 UTC
Indeed, that does not make sense. The wizard should ask the selected application server whether source level is acceptable or not. I'm fixing that in #29ace2f51bbf. I tested it on GF and it works as expected now. Looking at Weblogic code base I do not see 1.7 as acceptable source level so passing to PetrH to fix that.

Thanks for testing it and bringing it to our attention.
Comment 4 David Konecny 2013-04-09 02:15:13 UTC
I transplanted the fix into javaee7 branch as b829c036c116. I know, I should have done it the other way around.
Comment 5 Petr Hejl 2013-04-09 06:59:25 UTC
Fixed in javaee7 branch - web-main 3d3b0d2b9514.