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 - Choosing an explicit platform does not do anything if IDE is running on JDK 1.4.2
Summary: Choosing an explicit platform does not do anything if IDE is running on JDK 1...
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 4.x
Hardware: All All
: P1 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords: SIMPLEFIX
Depends on:
Blocks: 41537
  Show dependency tree
 
Reported: 2004-08-13 21:08 UTC by Jesse Glick
Modified: 2006-03-24 10:04 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.