You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 64e769a
Browse filesBrowse the repository at this point in the historyBrowse files
fix: ClassFormatError when serializing classes with array-typed fields, for issue #4009
When calling JSON.toJSON() on objects with Class[] or other array-typed
fields, the ASM-based JIT code generator was creating class names like
'OWG_5_0_Class[]' which contain illegal characters for Java class names.
Added sanitizeClassName() helper method to ObjectWriterCreatorASM and
ObjectReaderCreatorASM to sanitize class simple names by converting
array notation (e.g., 'Class[]' -> 'ClassArray') and replacing other
invalid characters with underscores.
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
0 commit comments