yunshen-Lee opened a new issue, #1835: URL: https://github.com/apache/fury/issues/1835
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/fury/issues) and found no similar issues. ### Version fury 0.7.0 JDK 1.8 ### Component(s) Java ### Minimal reproduce step public class TestClassLengthTestClassLengthTestClassLengthTestClassLengthTestClassLengthTestClassLengthTestClassLength implements Serializable { private static final long serialVersionUID = 612789657789099089L; private String name; private InnerClassTestLengthInnerClassTestLengthInnerClassTestLength innerClassTestLength; public static class InnerClassTestLengthInnerClassTestLengthInnerClassTestLength implements Serializable { private static final long serialVersionUID = -867612757789099089L; private Long itemId; } } After defining a class with a relatively long class name, an ArrayIndexOutOfBoundsEException will be reported during deserialization. If there is an inner class, an Invalid character value for LOWERS_SPECIAL: 31 will be reported ### What did you expect to see? Do not encounter errors during deserialization ### What did you see instead? There are no internal classes: org.apache.fury.exception.DeserializationException: Deserialize failed, read objects are: [{}] at org.apache.fury.util.ExceptionUtils.handleReadFailed(ExceptionUtils.java:63) at org.apache.fury.Fury.deserializeJavaObjectAndClass(Fury.java:1227) at org.apache.fury.Fury.deserializeJavaObjectAndClass(Fury.java:1208) Caused by: java.lang.ArrayIndexOutOfBoundsException: -30469 at org.apache.fury.resolver.ClassResolver.getRegisteredClass(ClassResolver.java:507) at org.apache.fury.meta.ClassDef$RegisteredFieldType.toTypeToken(ClassDef.java:458) at org.apache.fury.meta.ClassDef$FieldInfo.toDescriptor(ClassDef.java:307) at org.apache.fury.meta.ClassDef.getDescriptors(ClassDef.java:237) There are internal classes available: org.apache.fury.exception.DeserializationException: Deserialize failed, read objects are: [] at org.apache.fury.util.ExceptionUtils.handleReadFailed(ExceptionUtils.java:63) at org.apache.fury.Fury.deserializeJavaObjectAndClass(Fury.java:1227) at org.apache.fury.Fury.deserializeJavaObjectAndClass(Fury.java:1208) Caused by: java.lang.IllegalArgumentException: Invalid character value for LOWER_SPECIAL: 31 ### Anything Else? _No response_ ### Are you willing to submit a PR? - [ ] I'm willing to submit a PR! -- 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]
