Replies: 2 comments
-
Orbit currently provides these versions: https://download.eclipse.org/tools/orbit/simrel/orbit-aggregation/table.html The 4.x version is consumed directly from Maven central where it is available as an OSGi build: https://repo1.maven.org/maven2/org/antlr/antlr4-runtime/4.13.2/ Projects should be using these versions only. It appears that Acceleo is ignoring that. That's not a problem for Orbit to solve. I assume in the past that this was used and that Orbit rewrapped it: https://repo1.maven.org/maven2/org/antlr/antlr4-runtime/4.7.2/ But the original artifact did not have that problem:
The Acceleo project (Obeo) should use what Orbit provides. It's no longer possible in the latest Orbit design to re-wrap bundles so this problem cannot be fixed by Obit. Sorry. (I appear to me that those folks simply need to use the newer bundle symbolic name. ) |
Beta Was this translation helpful? Give feedback.
-
Thank you for your answer, I'll check if we can update our ANTLR dependencies. |
Beta Was this translation helpful? Give feedback.
-
For instance if both ANTLR runtime 4.7.2 and ANTLR runtime 4.10.1 are installed in the same environment:
https://www.eclipse.org/downloads/download.php?file=/tools/orbit/downloads/drops/R20230302014618/repository/plugins/org.antlr.runtime.source_4.7.2.v20221112-0806.jar
https://www.eclipse.org/downloads/download.php?file=/tools/orbit/downloads/drops/R20230302014618/repository/plugins/org.antlr.runtime.source_4.10.1.v20230210-1433.jar
ANTLR runtime 4.7.2 exposes classes from ANTLR runtime 4.10.1. This leads to parsers generated with version 4.7.2 to raise an error when loaded even if the containing bundle has a dependency range that exclude other versions of ANTLR runtime.
The plugin dependency view shows the issue:
To fixe this one should remove the
Import-Package
from the manifest:Other versions might also be affected... Would it be possible to contribute patched versions to Orbit ?
Beta Was this translation helpful? Give feedback.
All reactions