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.
Seems to have been broken for a long time without anyone noticing? If you run the IDE on JDK 1.4.2, and set a j2seproject to use a specific JDK, the project.xml is generated incorrectly: it has <explicit-platform explicit-source-supported="true" xmlns=""/> where it should be <explicit-platform explicit-source-supported="true"/> (inherited as "http://www.netbeans.org/ns/j2se-project/1"). Since the namespace of the element is wrong, the build-impl.xml is wrong: it continues to use the default JDK, not the requested JDK. If you run the IDE on JDK 1.5, for some reason the XML is generated correctly. Looking at the source code, J2SEProjectProperties.setPlatform is clearly wrong. It was using the non-namespace-aware versions of DOM calls. I will patch it in the trunk, of course; quite simple. But is this a beta blocker?
committed Up-To-Date 1.21 java/j2seproject/src/org/netbeans/modules/java/j2seproject/ui/customizer/J2SEProjectProperties.java
This should be fixed for beta. Please integrate into the QBE200408101800 branch asap. Thanks.
Done.
Marking this issue as VERIFIED since the issue reporter == issue owner.