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 47222

Summary: Choosing an explicit platform does not do anything if IDE is running on JDK 1.4.2
Product: java Reporter: Jesse Glick <jglick>
Component: ProjectAssignee: Jesse Glick <jglick>
Status: CLOSED FIXED    
Severity: blocker CC: dkonecny, jchalupa, tzezula
Priority: P1 Keywords: SIMPLEFIX
Version: 4.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 41537    

Description Jesse Glick 2004-08-13 21:08:04 UTC
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?
Comment 1 Jesse Glick 2004-08-14 01:20:20 UTC
committed     Up-To-Date  1.21       
java/j2seproject/src/org/netbeans/modules/java/j2seproject/ui/customizer/J2SEProjectProperties.java
Comment 2 Jan Chalupa 2004-08-16 07:46:37 UTC
This should be fixed for beta. Please integrate into the
QBE200408101800 branch asap. Thanks.
Comment 3 Petr Hrebejk 2004-08-16 12:23:01 UTC
Done.
Comment 4 Jaromir Uhrik 2006-01-18 10:48:05 UTC
Marking this issue as VERIFIED since the issue reporter == issue owner.