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.
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.
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.
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.