Description
for example, if comment like this
/**
some comment
**/
then we get exception like
Error : line 73:3: unexpected char: '/'
org.apache.cxf.tools.common.ToolException: line 73:3: unexpected char: '/'
at org.apache.cxf.tools.corba.processors.idl.IDLProcessor.process(IDLProcessor.java:73)
at org.apache.cxf.tools.corba.processors.idl.IDLToWSDLProcessor.process(IDLToWSDLProcessor.java:78)
at org.apache.cxf.tools.corba.IDLToWSDL.execute(IDLToWSDL.java:75)
at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:103)
at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:58)
at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:40)
at org.apache.cxf.tools.corba.IDLToWSDL.run(IDLToWSDL.java:164)
at org.apache.cxf.tools.corba.IDLToWSDLTest.testExternalInterfaceRef(IDLToWSDLTest.java:359)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: line 73:3: unexpected char: '/'
at org.apache.cxf.tools.corba.processors.idl.IDLLexer.nextToken(IDLLexer.java:356)
at antlr.TokenStreamHiddenTokenFilter.consume(TokenStreamHiddenTokenFilter.java:38)
at antlr.TokenStreamHiddenTokenFilter.nextToken(TokenStreamHiddenTokenFilter.java:134)
at antlr.TokenBuffer.fill(TokenBuffer.java:69)
at antlr.TokenBuffer.LA(TokenBuffer.java:80)
at antlr.LLkParser.LA(LLkParser.java:52)
at antlr.Parser.match(Parser.java:210)
at org.apache.cxf.tools.corba.processors.idl.IDLParser.module(IDLParser.java:573)
at org.apache.cxf.tools.corba.processors.idl.IDLParser.definition(IDLParser.java:174)
at org.apache.cxf.tools.corba.processors.idl.IDLParser.specification(IDLParser.java:86)
at org.apache.cxf.tools.corba.processors.idl.IDLProcessor.process(IDLProcessor.java:71)
... 26 more
However, if we change the comment a little bit like
/**
some comment
**/
only difference between the one doesn't work is this working one last line start with a whitespace
or
/*
some comment
*/
then it works