Replies: 5 comments 6 replies
|
From which update site are you providing the p2 bundles? This issue was addressed in p2 almost 2 years ago. And just these past days I’ve update a bunch of builds that use p2.manager. |
|
Nothing to do with update sites. I've managed to reproduce on a QVTd JUnit test that was fine using Eclipse 2026-03 and Java 21, but fails with the sole change to Java 25. It would appear that Java 25 introduces a 'helpful' XML size limit in XMLEntityScanner.checkEntityLimit which may suit file name typos for small XML users but kills bug-free big XML users, unless they set an explicit limit. It would seem that for compatibility XMLLoadImpl.load should set a big XML limit. |
|
For my JUnit test I need to revert 3 of the changes in https://bugs.openjdk.org/browse/JDK-8343006 with From a legacy usage point of view, Java 25 corrupts java.xml module. I expect Eclipse to hide OS/UI/... eccentricities so that my working code is portable. IMHO it is therefore just a matter of whether the platform or EMF should 'revert' the Java 25 corruption. But perhaps the problem is that the simple problem of reading an XML file has got hijacked by security concerns over nested imports. It seems very very wrong that standard JustJ usage is broken by Java 25. If the platform / EMF fixed the problem, users would be unaffected. As it is every JustJ user must discover/diagnose/fix the known issue. |
|
Adding the same three -D's to the JustJ mvn launch solves the original problem. Surely the platform must have a 'solution' to allow it to read a large workspace file, so why is that solution not made available to users too? |
|
(We agreed that it was nothing to do with update sites although the first observation pointed that way.) The problem for the QVTd JUnit test arises from exploiting EMF's support for entities to save space (typically 20% net) and allow single location editing: The limits apply to the narrow entity (!ENTITY) rather than the overall 'entity' (file). It appears to be a bug that the 10000 limit is applied to the referenced URL contents which may be huge rather than to the entity value ("http://www.eclipse.org/ocl/2015/Library.oclas") which should be modest/small. EMF (and the platform) works because EMF never uses entities in URLs. I'm not sure why JustJ / Maven fails; I wouldn't expect them to read the files they are managing. |
Uh oh!
There was an error while loading. Please reload this page.
The eclipse-simrel/.github#75 change to Java 25 seems to have happened mandating Java 25 for normal builds on Jenkins.
However using Java 25 for 2026-09 and JustJ gives (https://ci.eclipse.org/uml2/job/uml2-promoter/99/console)
Although JustJ does not appear on the stack, this seems to be a good place to ask about a problem affecting standard JustJ usage.
Is it a platform bug that the 100,000 limit is imposed?
Do maven configs need changing as per google/google-java-format#1210?
Must every maven use of XML add a larger jdk.xml.maxGeneralEntitySizeLimit just in case?
All reactions