Skip to content

Commit

Permalink
add missing named type
Browse files Browse the repository at this point in the history
  • Loading branch information
chaokunyang committed Dec 27, 2024
1 parent 0140001 commit 02001ad
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,11 @@ public ClassInfo writeClassInfo(MemoryBuffer buffer, Object obj) {
switch (internalTypeId) {
case Types.NAMED_ENUM:
case Types.NAMED_STRUCT:
case Types.NAMED_COMPATIBLE_STRUCT:
case Types.NAMED_POLYMORPHIC_STRUCT:
case Types.NAMED_POLYMORPHIC_COMPATIBLE_STRUCT:
case Types.NAMED_EXT:
case Types.NAMED_POLYMORPHIC_EXT:
assert classInfo.packageNameBytes != null;
metaStringResolver.writeMetaStringBytes(buffer, classInfo.packageNameBytes);
assert classInfo.classNameBytes != null;
Expand All @@ -379,7 +383,10 @@ public ClassInfo readClassInfo(MemoryBuffer buffer) {
case Types.NAMED_ENUM:
case Types.NAMED_STRUCT:
case Types.NAMED_COMPATIBLE_STRUCT:
case Types.NAMED_POLYMORPHIC_STRUCT:
case Types.NAMED_POLYMORPHIC_COMPATIBLE_STRUCT:
case Types.NAMED_EXT:
case Types.NAMED_POLYMORPHIC_EXT:
MetaStringBytes packageBytes = metaStringResolver.readMetaStringBytes(buffer);
MetaStringBytes simpleClassNameBytes = metaStringResolver.readMetaStringBytes(buffer);
return loadBytesToClassInfo(internalTypeId, packageBytes, simpleClassNameBytes);
Expand Down Expand Up @@ -446,6 +453,8 @@ private ClassInfo populateBytesToClassInfo(
case Types.NAMED_ENUM:
case Types.NAMED_STRUCT:
case Types.NAMED_COMPATIBLE_STRUCT:
case Types.NAMED_POLYMORPHIC_STRUCT:
case Types.NAMED_POLYMORPHIC_COMPATIBLE_STRUCT:
type =
NonexistentClass.getNonexistentClass(
qualifiedName, isEnum(typeId), 0, config.isMetaShareEnabled());
Expand Down

0 comments on commit 02001ad

Please sign in to comment.