-
Bug
-
Resolution: Fixed
-
Neutral
-
None
-
None
-
None
-
-
Empty show more show less
-
Yes
-
UI Framework 14
-
1
According to the certified stack of Magnolia 5.7, Java 11 is supported. However, when it comes to groovy script execution, it is failing whereas same script with java 8 works ok. This is not happening in Magnolia 6.1
Steps to reproduce:
- Execute the following script in Magnolia 5.7.X with java 8
import info.magnolia.cms.security.MgnlUser; import info.magnolia.context.MgnlContext; MgnlUser user = MgnlContext.getUser(); println user.getName();
- Switch jdk to java 11 and execute it again. You will see following error:
General error during semantic analysis: Unsupported class file major version 55 java.lang.IllegalArgumentException: Unsupported class file major version 55 at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:166) at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:148) at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:136) at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:237) at org.codehaus.groovy.ast.decompiled.AsmDecompiler.parseClass(AsmDecompiler.java:82) at org.codehaus.groovy.control.ClassNodeResolver.findDecompiled(ClassNodeResolver.java:254) .... 1 error mgnl>
You can get rid of the issue by replacing groovy-2.5.0.jar and groovy-xml-2.5.0.jar with groovy-2.5.7.jar and groovy-xml-2.5.7.jar. Therefore, groovy dependencies within the BOM for third party modules of Magnolia 5.7 should be updated to 2.5.7 like in Magnolia 6.1
Acceptance criteria
- is related to
-
MGNLGROOVY-184 Update Groovy dependency to the latest stable 2.5.x release
- Closed