Bug 2051202
Summary: | protobuf fails to build with java-17-openjdk | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | jiri vanek <jvanek> |
Component: | protobuf | Assignee: | Igor Raits <igor.raits> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 36 | CC: | adrian, code, didiksupriadi41, igor.raits, java-maint-sig, jhuttana, jvanek, mizdebsk, mtasaka, orion, pmikova, sander, sgehwolf, shamardin |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-02-16 08:09:35 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 2024265 |
Description
jiri vanek
2022-02-06 15:38:42 UTC
[ERROR] ServiceTest.testCallMethod:83 » NoClassDefFound Could not initialize class org... [ERROR] ServiceTest.testGetPrototype:107 » ExceptionInInitializer [INFO] [ERROR] Tests run: 1145, Failures: 0, Errors: 2, Skipped: 1 but: [ERROR] com.google.protobuf.ServiceTest.testGetPrototype Time elapsed: 0.021 s <<< ERROR! java.lang.ExceptionInInitializerError at com.google.protobuf.ServiceTest.testGetPrototype(ServiceTest.java:107) Caused by: net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InaccessibleObjectException-->Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @12d5624a at com.google.protobuf.ServiceTest.testGetPrototype(ServiceTest.java:107) Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @12d5624a at com.google.protobuf.ServiceTest.testGetPrototype(ServiceTest.java:107) [ERROR] com.google.protobuf.ServiceTest.testCallMethod Time elapsed: 0.001 s <<< ERROR! java.lang.NoClassDefFoundError: Could not initialize class org.easymock.internal.ClassProxyFactory$2 at com.google.protobuf.ServiceTest.testCallMethod(ServiceTest.java:83) is caused by jdk17. You need to add opens/exports as java/javac args, or to bump to upstream sources supporting that. Maybe jsut disable the tests, but afik the seen issue is correct. Reported upstream - https://github.com/protocolbuffers/protobuf/issues/9477 This bug appears to have been reported against 'rawhide' during the Fedora 36 development cycle. Changing version to 36. So following the above error seems to make build success: https://koji.fedoraproject.org/koji/taskinfo?taskID=82757599 PR submitted: https://src.fedoraproject.org/rpms/protobuf/pull-request/10 Note that now even on i686 reducing java heap usage seems needed. @mtasaka thanks for doing the F36 build. |