-
Bug
-
Resolution: Done
-
Major
-
8.0 Update 5.1
This issue is related to the JBEAP-28346 , this is a missing bit:
diff --git api/src/main/java16/org/jboss/marshalling/reflect/JDKSpecific.java api/src/main/java16/org/jboss/marshalling/reflect/JDKSpecific.java index 85193ab..25d6806 100644 --- api/src/main/java16/org/jboss/marshalling/reflect/JDKSpecific.java +++ api/src/main/java16/org/jboss/marshalling/reflect/JDKSpecific.java @@ -65,7 +65,7 @@ final class JDKSpecific { */ static Object getRecordComponentValue(Object recordObject, String name, Class<?> type) { try { - MethodHandle methodHandle = LOOKUP.findVirtual( + MethodHandle methodHandle = MethodHandles.privateLookupIn(recordObject.getClass(), LOOKUP).findVirtual( recordObject.getClass(), name, MethodType.methodType(type)); return (Object) methodHandle.invoke(recordObject); } catch (Throwable e) {
- is cloned by
-
JBEAP-29888 (8.1.0.GA) JBMAR-261 - Allow serialization of records of with non-primitive types part 2
-
- Verified
-
-
JBEAP-30216 (7.4.z) JBMAR-261 - Allow serialization of records of with non-primitive types part 2
-
- Resolved
-
-
JBMAR-261 Fix linkage error related to Java records
-
- Resolved
-
- is incorporated by
-
JBEAP-30212 (8.0.z) Upgrade JBoss Marshalling from 2.1.6.Final-redhat-00001 to 2.1.7.Final-redhat-00001
-
- Closed
-
- is related to
-
JBEAP-28346 [GSS](8.0.z) Allow serialization of records of with non-primitive types
-
- Verified
-