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.
It seems it would be better if a j2seproject always kept in project.properties its desired source and target levels, to avoid a possible source of errors when running builds without build.properties. The source level (and probably target level) of a project is really intrinsic to the project and should not be sensitive to the build environment, even if the selection of a physical JDK to build and run against might have to passed in from the environment. Suggest that we modify these values in project.properties only in response to the user explicitly changing the platform in the project customizer, and at no other time. I.e. a user running the IDE on JDK 1.5 would always have 1.5 source level as the initial setting for new projects. If the user changed the explicit platform to be a 1.4 JDK, project.properties would be changed to use 1.4 source and target levels. Needs to be analyzed with a full set of use cases to be sure that the behavior would be rational in all circumstances. May no longer be feasible for D, but we can think about it for E.
The UI spec is in the URL field.
Reevaluate.
Petr said he will fix this issue.
*** Issue 53564 has been marked as a duplicate of this issue. ***
Wasn't this just fixed in CVS? Or was that something else?
*** Issue 50435 has been marked as a duplicate of this issue. ***
Jesse is right, it is already in the CVS, but I didn't find this issue. Attaching the diff: http://java.netbeans.org/source/browse/java/j2seproject/src/org/netbeans/modules/java/j2seproject/ui/customizer/Bundle.properties.diff?r1=1.44&r2=1.45 http://java.netbeans.org/source/browse/java/j2seproject/src/org/netbeans/modules/java/j2seproject/ui/customizer/CustomizerSources.form.diff?r1=1.2&r2=1.3 http://java.netbeans.org/source/browse/java/j2seproject/src/org/netbeans/modules/java/j2seproject/ui/customizer/CustomizerSources.java.diff?r1=1.3&r2=1.4 http://java.netbeans.org/source/browse/java/j2seproject/src/org/netbeans/modules/java/j2seproject/ui/customizer/J2SEProjectProperties.java.diff?r1=1.40&r2=1.41 http://java.netbeans.org/source/browse/java/j2seproject/src/org/netbeans/modules/java/j2seproject/ui/customizer/PlatformUiSupport.java.diff?r1=1.1&r2=1.2
Not working properly. I run the IDE on JDK 1.6.0, make a j2seproject main app, and build and run it. Error occurs as in issue #52127, since the default level for this platform is (erroneously) listed as 1.6. Now I go into the properties dialog and set Source Level to 1.5. I get in project.properties: javac.source=1.5 javac.target=${default.javac.target} This is no good as javac.target is now still set to 1.6, which is an invalid value (and what causes the error in #52157). The target should be set to the same value as the source (at least when using the GUI). I believe this needs to happen in J2SEProjectProperties.
http://java.netbeans.org/source/browse/java/j2seproject/src/org/netbeans/modules/java/j2seproject/ui/customizer/J2SEProjectProperties.java.diff?r1=1.43&r2=1.44
Checking in src/org/netbeans/modules/java/j2seproject/ui/customizer/PlatformUiSupport.java; /cvs/java/j2seproject/src/org/netbeans/modules/java/j2seproject/ui/customizer/PlatformUiSupport.java,v <-- PlatformUiSupport.java new revision: 1.5; previous revision: 1.4 done