Skip to content

[Java] Failed to serialize collections containing only null elements in xlang mode #2203

Open
@Handsome-cong

Description

@Handsome-cong

Search before asking

  • I had searched in the issues and found no similar issues.

Version

a37cc55

Component(s)

Java

Minimal reproduce step

Fury fury = Fury.builder().withLanguage(Language.XLANG).build();
ArrayList<String> strList = new ArrayList<>();
strList.add(null);
fury.serialize(strList);

What did you expect to see?

The correct serialization into a byte sequence, and the ability to deserialize it back into a sequence containing only nulls.

What did you see instead?

org.apache.fury.exception.ClassUnregisteredException: Class java.lang.Object is not registered

Anything Else?

Different exception is thrown when RefTracing is enabled. It seems that void and Object are not registered by XtypeResolver by default.

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions