You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fory.apache.org by "mandrean (via GitHub)" <gi...@apache.org> on 2026/02/13 16:12:29 UTC
[I] Deserialization fails for 4-level nested HashMap subclasses [fory]
mandrean opened a new issue, #3337:
URL: https://github.com/apache/fory/issues/3337
### Search before asking
- [x] I had searched in the [issues](https://github.com/apache/fory/issues) and found no similar issues.
### Version
0.15.0
### Component(s)
Java
### Minimal reproduce step
```java
// 4-level HashMap subclass nesting
public class RegionCode extends HashMap<String, String> {}
public class LanguageData extends HashMap<String, RegionCode> {}
public class LocaleMapping extends HashMap<String, LanguageData> {}
public class LocalizationSettings extends HashMap<String, LocaleMapping> {}
@Data
public class ConfigDocument {
private String id;
private LocalizationSettings localizations;
}
// Serialize and deserialize
Fury fury = Fury.builder()
.withCodegen(false)
.requireClassRegistration(false)
.withLanguage(Language.JAVA)
.build();
ConfigDocument doc = new ConfigDocument("id-123", localizations);
byte[] bytes = fury.serialize(doc);
ConfigDocument result = fury.deserialize(bytes); // ❌ Fails with DeserializationException
```
### What did you expect to see?
It to succeed deserializing even nested hash maps
### What did you see instead?
It fails with DeserializationException
### 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: commits-unsubscribe@fory.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fory.apache.org
For additional commands, e-mail: commits-help@fory.apache.org
Re: [I] [Java] Fails deserializing nested HashMap subclasses with inherited generic type parameters [fory]
Posted by "chaokunyang (via GitHub)" <gi...@apache.org>.
chaokunyang closed issue #3337: [Java] Fails deserializing nested HashMap subclasses with inherited generic type parameters
URL: https://github.com/apache/fory/issues/3337
--
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: commits-unsubscribe@fory.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fory.apache.org
For additional commands, e-mail: commits-help@fory.apache.org
Re: [I] [Java] Deserialization fails for 4-level nested HashMap subclasses [fory]
Posted by "mandrean (via GitHub)" <gi...@apache.org>.
mandrean commented on issue #3337:
URL: https://github.com/apache/fory/issues/3337#issuecomment-3907845674
PR: https://github.com/apache/fory/pull/3342
--
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: commits-unsubscribe@fory.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fory.apache.org
For additional commands, e-mail: commits-help@fory.apache.org