[
https://issues.apache.org/jira/browse/AXIS2-6095?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Lazarski resolved AXIS2-6095.
------------------------------------
Resolution: Fixed
Hi Șerban,
This is fixed on trunk and will ship in 2.0.1. The grammar and generated
lexer now use a semantic
predicate so **/ (and any number of asterisks before the closing slash) is
handled correctly.
I wanted to give you a heads-up on context. We just completed a significant
cleanup of Axis2 —
removing 8 modules that were unmaintained or broken on current JDKs (Eclipse
plugins, IDEA
plugin, OSGi, JiBX, SOAPMonitor, Scripting, FastInfoset, WSDL 2.0). The CORBA
module was
specifically retained because of your active usage.
That said, CORBA is in a similar position to the modules we removed — it
requires an external ORB
since CORBA was removed from the JDK in Java 11, and you are currently the
only community member
we hear from. That's not a problem today, but I want to be transparent: if
the module has no
visible community activity over time, it will eventually be a candidate for
removal in a future
release.
The best way to keep it healthy is exactly what you're doing — filing bugs,
responding to issues,
and contributing when you can. If there are others in your organization or
community using the
CORBA module, encouraging them to subscribe to the dev list or file issues
would help demonstrate
that the module has an audience worth maintaining.
Thanks for the report and for your patience on the 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: [email protected]
For additional commands, e-mail: [email protected]