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 55912 - wscompile ignores java platform settings
Summary: wscompile ignores java platform settings
Status: CLOSED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: _ pcw
URL:
Keywords:
: 56430 (view as bug list)
Depends on:
Blocks: 55797
  Show dependency tree
 
Reported: 2005-03-03 16:30 UTC by Pavel Buzek
Modified: 2006-03-24 12:55 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 Pavel Buzek 2005-03-03 16:30:48 UTC
If you change j2se platform for project with
websvc you cannot compile it. Javac uses the
explicit platform but wscompile uses the default
and reports unsupported version of classfiles.
Comment 1 _ pcw 2005-03-03 20:40:20 UTC
Could I get steps to reproduce please?  Did you add a new platform? 
Which one?  Did you change javac compile settings?  Which ones?
Comment 2 _ ludo 2005-03-15 22:03:04 UTC
needed for 4.1!
Comment 3 _ ludo 2005-03-15 22:05:53 UTC
but maybe not possible, as there is no way to control the wscompile tool to
change its javac flags...
Comment 4 _ pcw 2005-03-16 21:49:58 UTC
Due to the addition of building J2EE projects with -target 1.4 when running on
JDK 1.5, I think this is a MUST FIX for 4.1.

However, as far as I can tell, there is *no* way to tell wscompile to tell javac
to use -target 1.4 when compiling the service (or client).

So the only way I see to resolve this for 4.1 is this:

1) We wscompile save the source code (we already do this)
2) Throw away the class files it will generate (wish they had /dev/null on
windows for an easy way to do this).
3) Augment the build script generated for services and clients to have an
additional step that compiles the service/client source using the appropriate
javac command.

I think this should be doable.  Comments?
Comment 5 _ ludo 2005-03-16 22:07:40 UTC
there is no other solution that what you propose...
Unless the jax-rpc team has a better idea, go for it.
Comment 6 Martin Grebac 2005-03-17 08:36:48 UTC
*** Issue 56430 has been marked as a duplicate of this issue. ***
Comment 7 _ pcw 2005-03-22 02:11:33 UTC
This is related to bug #55797.

I have a proof of concept that will resolve this, need to integrate changes into
build-impl.xsl for web/project and j2ee/ejbjarproject

Comment 8 _ pcw 2005-03-25 21:38:34 UTC
Integrated build script changes for web services and web service clients into
web/project and j2ee/ejbjarproject.  The effect of the changes is as follows:

There are now 3 web service target directories under build/generated, named
wsclient, wsservice, and wsbinary.  Client source code is generated to wsclient,
service source (except from wsdl case) is generated to wsservice and binaries
(.class files) in both cases are put in wsbinary (which is a throw-away
directory.  These files are not and should not be used.)

For clients, after client source code is generated for all clients, javac macro
is used to compile them.

For services, no such compile step is needed since in all current development
use cases, the service source code is in the src tree and was already being
compiled with javac macro.  However, service generation had to be retargeted to
not place generated source in the same location as client generated source.
Comment 9 Lukas Jungmann 2005-07-12 16:01:11 UTC
v.