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.
Summary: | Source/target level should always be explicit in a j2seproject | ||
---|---|---|---|
Product: | java | Reporter: | Jesse Glick <jglick> |
Component: | Project | Assignee: | Tomas Zezula <tzezula> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | jrojcek, ttran, tzezula |
Priority: | P3 | ||
Version: | 4.x | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://projects.netbeans.org/nonav/buildsys/j2se-project-ui-spec-promoe.html#Sources | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 41537 |
Description
Jesse Glick
2004-06-22 16:35:45 UTC
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. 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 |