aws-cloudformation / aws-cloudformation/cloudformation-cli-java-plugin
Runtime compatibility issue
- Linguagem predominante
- Java
- Estrelas
- 30
- Forks
- 48
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
**Summary**
Cannot get `mvn package` to succeed as it fails running tests with the below runtime incompatiblity error.
`Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 63
at org.jacoco.agent.rt.internal_035b120.asm.ClassReader.(ClassReader.java:195)
at org.jacoco.agent.rt.internal_035b120.asm.ClassReader.(ClassReader.java:176)
at org.jacoco.agent.rt.internal_035b120.asm.ClassReader.(ClassReader.java:162)
at org.jacoco.agent.rt.internal_035b120.core.internal.instr.InstrSupport.classReaderFor(InstrSupport.java:279)
at org.jacoco.agent.rt.internal_035b120.core.instr.Instrumenter.instrument(Instrumenter.java:74)
at org.jacoco.agent.rt.internal_035b120.core.instr.Instrumenter.instrument(Instrumenter.java:106)
... 65 more
`
My intelliJ IDE uses Oracle Open JDK 19.0.2 JDK for the project. My pom.xml has the below source and target compiler definitions

I specified the runtime in .rpdk-config as "java19". I am using protocolVersion 2.0.0
I had also tried skipping the tests and generating the package. However, my `sam local` tests were then failing , again due to the runtime incompatibility error.
What are the recommended versions to set in each of these configs for this to work?
Guia de contribuição
Direção de pesquisa
Start with pom.xml and .rpdk-config, then reproduce mvn package using the Java 19 runtime described in the issue. Compare the runtime used by sam local and the JaCoCo failure; done means the project builds and local tests run without the unsupported class file error.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- java
- Domínio
- build-system, devtools
- Tipo de issue
- Bug
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 25/100