[ 
https://issues.apache.org/jira/browse/AXIS2-6095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18004658#comment-18004658
 ] 

Brănaci Șerban-Mihai commented on AXIS2-6095:
---------------------------------------------

Sure, when time allows it I can take a look and prepare a GitHub PR with a fix.

> Axis2's IDL parser (Corba Module) gives fault on valid comment
> --------------------------------------------------------------
>
>                 Key: AXIS2-6095
>                 URL: https://issues.apache.org/jira/browse/AXIS2-6095
>             Project: Axis2
>          Issue Type: Bug
>          Components: corba
>            Reporter: Brănaci Șerban-Mihai
>            Priority: Minor
>             Fix For: 2.0.1
>
>
> Axis2's IDL parser (Corba Module) gives fault on valid comment
> In our IDLs we have some comments with the following syntax:
> {code:java}
> /**
>  * some
>  * comment
>  * here
> **/{code}
> Of course, this is valid comment syntax, however it triggers parser errors:
> {code:java}
> ERROR [2025-06-06 16:04:17,494] 
> [org.apache.axis2.corba.deployer.CorbaDeployer] - Error while deploying null
> org.apache.axis2.deployment.DeploymentException: unexpected char: '/'
>         at 
> org.apache.axis2.corba.deployer.CorbaDeployer.populateService(CorbaDeployer.java:328)
>  ~[axis2-corba-2.0.0.jar:2.0.0]
>         at 
> org.apache.axis2.corba.deployer.CorbaDeployer.processService(CorbaDeployer.java:129)
>  ~[axis2-corba-2.0.0.jar:2.0.0]
>         at 
> org.apache.axis2.corba.deployer.CorbaDeployer.deploy(CorbaDeployer.java:97) 
> [axis2-corba-2.0.0.jar:2.0.0]
>         at 
> org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:148)
>  [axis2-kernel-2.0.0.jar:2.0.0]
>  <cut some lines here>
> Caused by: org.apache.axis2.corba.exceptions.IDLProcessorException: 
> unexpected char: '/'
>         at 
> org.apache.axis2.corba.idl.IDLProcessor.process(IDLProcessor.java:52) 
> ~[axis2-corba-2.0.0.jar:2.0.0]
>         at 
> org.apache.axis2.corba.receivers.CorbaUtil.getIDL(CorbaUtil.java:157) 
> ~[axis2-corba-2.0.0.jar:2.0.0]
>         at 
> org.apache.axis2.corba.deployer.CorbaDeployer.processOperations(CorbaDeployer.java:438)
>  ~[axis2-corba-2.0.0.jar:2.0.0]
>         at 
> org.apache.axis2.corba.deployer.CorbaDeployer.populateService(CorbaDeployer.java:299)
>  ~[axis2-corba-2.0.0.jar:2.0.0]
>         ... 56 more
> Caused by: antlr.TokenStreamRecognitionException: unexpected char: '/'
>         at 
> org.apache.axis2.corba.idl.parser.IDLLexer.nextToken(IDLLexer.java:366) 
> ~[axis2-corba-2.0.0.jar:2.0.0]
>         at antlr.TokenBuffer.fill(TokenBuffer.java:69) ~[antlr-2.7.7.jar:?]
>         at antlr.TokenBuffer.LA(TokenBuffer.java:80) ~[antlr-2.7.7.jar:?]
>         at antlr.LLkParser.LA(LLkParser.java:52) ~[antlr-2.7.7.jar:?]
>         at 
> org.apache.axis2.corba.idl.parser.IDLParser.definition_list(IDLParser.java:909)
>  ~[axis2-corba-2.0.0.jar:2.0.0]{code}
> After some analyzing, it seems that the parser does not accept multiple star 
> symbols *"\*"* before the comment-terminating sequence *"\*/"* - so *"\*/"* 
> is valid, but *"\*\*/"* is not.
> Note: We are using Axis2' Corba module to migrate our Corba services away 
> from using Java Applets and towards web services. Even if this is not the 
> intended use of Axis2, it seems to be the best open-source option for this 
> type of migration.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org
For additional commands, e-mail: java-dev-h...@axis.apache.org

Reply via email to