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 201300 - JDK 7 as default Source/Binary format
Summary: JDK 7 as default Source/Binary format
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.0.1
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-24 22:42 UTC by tmcginn
Modified: 2011-11-11 15:35 UTC (History)
3 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tmcginn 2011-08-24 22:42:33 UTC
When JDK 7 is the only platform in use, it would be great to be able to make JDK 7 the default Source/Binary format for new projects.

Alternatively, it would be great to be able to set the Source/Binary format for the tool.
Comment 1 Jesse Glick 2011-08-24 23:21:30 UTC
Probably this could be handled the same way as encoding: the source level for a new project would simply be the last source level that was set on an existing project. Then there is no need to hunt for a preferences item; your last choice is used as a default.

Maven projects are different since they are created from archetype.
Comment 2 MackSix 2011-11-10 11:02:51 UTC
Why does the Source/Binary format not match the Java Platform being used? Why is it always JDK 6 when the default platform is JDK 7? It seems to me it should just default to what the default platform is. It seems to be more of a P4 bug to me, but maybe I am missing something? :)
Comment 3 Tomas Zezula 2011-11-10 13:38:00 UTC
Both min(last used, default_platform.sourceLevel) and default_platform.sourceLevel are possible.
Comment 4 Tomas Zezula 2011-11-10 14:07:14 UTC
The 1.6 for JDK 7.0 platform was a fix of isse #89131.
Now it's safe to return 1.7.
Comment 5 Tomas Zezula 2011-11-10 14:33:31 UTC
Fixed for j2se project types, jet-main e632269ad7a3
For web project an issue #204941 was created.
Comment 6 Quality Engineering 2011-11-11 15:35:20 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/e632269ad7a3
User: Tomas Zezula <tzezula@netbeans.org>
Log: #201300:JDK 7 as default Source/Binary format