dims 2002/10/24 09:05:48 Modified: java/test/wsdl/getPort getPort.wsdl java/src/org/apache/axis/wsdl/toJava JavaWriter.java Log: Fix and test for Bug 13407 - WSDL2Java produces noncompilable code for documentation with /**/ Revision Changes Path 1.3 +1 -1 xml-axis/java/test/wsdl/getPort/getPort.wsdl Index: getPort.wsdl =================================================================== RCS file: /home/cvs/xml-axis/java/test/wsdl/getPort/getPort.wsdl,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- getPort.wsdl 11 Oct 2002 13:12:01 -0000 1.2 +++ getPort.wsdl 24 Oct 2002 16:05:48 -0000 1.3 @@ -32,7 +32,7 @@ <service name="empty"/> <service name="serviceA"> <documentation> - Service with all ports unique. + Service with all ports unique. /* Test Bug 13407 - embedded comments */ </documentation> <port name="portOne" binding="tns:bindingOne"> <soap:address location="http://localhost:8080/axis/services/portOne"/> 1.22 +1 -3 xml-axis/java/src/org/apache/axis/wsdl/toJava/JavaWriter.java Index: JavaWriter.java =================================================================== RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/wsdl/toJava/JavaWriter.java,v retrieving revision 1.21 retrieving revision 1.22 diff -u -r1.21 -r1.22 --- JavaWriter.java 24 Sep 2002 12:38:41 -0000 1.21 +++ JavaWriter.java 24 Oct 2002 16:05:48 -0000 1.22 @@ -251,7 +251,6 @@ int start = 0; pw.println(); // blank line - pw.println(" /**"); // make the comment look pretty while (start < comment.length()) { @@ -263,10 +262,9 @@ !Character.isWhitespace(comment.charAt(end))) { end++; } - pw.println(" * " + comment.substring(start, end).trim()); + pw.println(" // " + comment.substring(start, end).trim()); start = end + 1; } - pw.println(" */"); } } // writeComment