Runtime compatibility issue
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- java
- Lĩnh vực
- build-system, devtools
Hướng nghiên cứu
Bắt đầu với pom.xml và .rpdk-config, sau đó tái hiện mvn package bằng runtime Java 19 được mô tả trong issue. So sánh runtime mà sam local sử dụng với lỗi JaCoCo; hoàn thành khi dự án build được và các bài kiểm thử cục bộ chạy mà không gặp lỗi tệp lớp không được hỗ trợ.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.<init>(ClassReader.java:195)
at org.jacoco.agent.rt.internal_035b120.asm.ClassReader.<init>(ClassReader.java:176)
at org.jacoco.agent.rt.internal_035b120.asm.ClassReader.<init>(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?
- Ngôn ngữ chính
- Java
- Star
- 30
- Fork
- 48
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của aws-cloudformation/cloudformation-cli-java-plugin
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 20/100
-
injectCredentialsAndInvokeV2 method in proxy class doesn't support API's like PutObject from S3.Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
Tất cả issue của aws-cloudformation/cloudformation-cli-java-plugin
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
yegor256/jping#122 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
SAP/ai-sdk-java#1206 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue insight-module
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
sdlc-pro/spring-lens#606 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
apache/cloudstack#14719 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
apache/maven-surefire#3605 ·
Maintainer thường phản hồi trong vòng 1 ngày