axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 10477] - WSDL2Java generates class with same package name as its class
Date Tue, 23 Jul 2002 19:55:37 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10477>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10477

WSDL2Java generates class with same package name as its class





------- Additional Comments From mspreitz@us.ibm.com  2002-07-23 19:55 -------
I have attached a ZIP (as in Windows, not GNU) archive of a simple
test case, produced using the beta3 release of Axis, using IBM's JDK 1.3.0
on Windows 2000.

This bug is a problem because the java compiler does not accept the emitted 
Java.  The problem with the generated Java, for service FooService, is that

(a) all the code goes in package FooService,

(b) the emitted code includes a class whose fully qualified name is 
FooService.FooService,

(c) several places in the emitted code refer to other classes by their fully 
qualified names, FooService.X.

At those references I get compilation errors, saying that X cannot be found; I 
presume javac is looking for members of the FooService class named X, rather 
than members of the FooService package named X.

Mime
View raw message