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 218418 - wsimport version troubles on multiple installed jdk versions
Summary: wsimport version troubles on multiple installed jdk versions
Status: CLOSED INVALID
Alias: None
Product: webservices
Classification: Unclassified
Component: JAX-WS (show other bugs)
Version: 7.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Denis Anisimov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-16 14:00 UTC by nuclearwinter
Modified: 2012-09-18 17:27 UTC (History)
0 users

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 nuclearwinter 2012-09-16 14:00:58 UTC
If the environment vars of a system are set to JDK A the IDE settings for JDK B are not recognized for wsimport/ Webservice client function.
Example:
In my case I was using JDK 1.7 in Netbeans, project source level was set to JDK 7.
My env vars of the system were preferred to use JDK 1.6.
This ended up in a mixed JDK6/7 code on wsimport usage.

Is there any way to recognize such settings in NB? Althought compilation works it lead to some mysterious null parameter calls for me which made it hard to track down. Just a look into the wsimport generated stubs gave me a hint.
Comment 1 Denis Anisimov 2012-09-17 12:32:48 UTC
Could you please clarify what is exactly the issue you faced with ?
I don't see any inconsistencies here:
wsimport is Ant task, which is invoked via NB ant infrastructure.
It works using JDK the same as NB started with.
In your case I suppose it is JDK6.
Your source level has no any relation to wsimport task.
The result of the latter task is Java source files.
Your project source level is instructions for java compiler. So it uses 
those options to compile java source files.
I don't see any interference between compilation and source files generation.
Comment 2 nuclearwinter 2012-09-18 17:27:58 UTC
This can be closed. I was confused that wsimport of JDK7 produces Java 6 code, while hunting a bug. That made me suppose that NB was handling different JDK versions which doesn't seem to be the case.