mengnankkkk commented on code in PR #2701:
URL: https://github.com/apache/fory/pull/2701#discussion_r2426664250
##########
java/fory-core/src/main/java/org/apache/fory/util/GraalvmSupport.java:
##########
@@ -145,4 +145,37 @@ public static boolean
isRecordConstructorPublicAccessible(Class<?> type) {
}
return false;
}
+
+ /**
+ * Checks if a class is problematic for object creation and requires special
handling in GraalVM.
+ *
+ * <p>A class is considered problematic if it lacks a public no-arg
constructor and would
+ * typically require ReflectionFactory or unsafe allocation for
instantiation.
+ *
+ * @param type the class to check
+ * @return true if the class is problematic for creation, false otherwise
+ */
+ public static boolean isProblematicForCreation(Class<?> type) {
Review Comment:
Ok. I. will do it thanks for your codereview and suggestions 💕💕
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]