Skip to content

Commit 3df3a0d

Browse files
committed
Fix CreateClass, handle failure
1 parent 1845f70 commit 3df3a0d

File tree

2 files changed

+231
-241
lines changed

2 files changed

+231
-241
lines changed

jvm-assembler-server/src/main/java/com/mmhelloworld/jvmassembler/server/Asm.java

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import com.fasterxml.jackson.annotation.JsonSubTypes;
77
import com.fasterxml.jackson.annotation.JsonTypeInfo;
88

9-
@JsonIgnoreProperties(ignoreUnknown = true)
109
@JsonTypeInfo(
1110
use = JsonTypeInfo.Id.NAME,
1211
include = JsonTypeInfo.As.PROPERTY,
@@ -29,7 +28,6 @@
2928
@JsonSubTypes.Type(value = Asm.Dup.class, name = "Dup"),
3029
@JsonSubTypes.Type(value = Asm.Field.class, name = "Field"),
3130
@JsonSubTypes.Type(value = Asm.Frame.class, name = "Frame"),
32-
@JsonSubTypes.Type(value = Asm.GetType.class, name = "GetType"),
3331
@JsonSubTypes.Type(value = Asm.Goto.class, name = "Goto"),
3432
@JsonSubTypes.Type(value = Asm.I2c.class, name = "I2c"),
3533
@JsonSubTypes.Type(value = Asm.I2l.class, name = "I2l"),
@@ -87,7 +85,6 @@ public enum AsmType {
8785
Dup,
8886
Field,
8987
Frame,
90-
GetType,
9188
Goto,
9289
I2c,
9390
I2l,
@@ -586,7 +583,6 @@ public String getLabel() {
586583
}
587584
}
588585

589-
@JsonIgnoreProperties(ignoreUnknown = true)
590586
@JsonTypeInfo(
591587
use = JsonTypeInfo.Id.NAME,
592588
include = JsonTypeInfo.As.PROPERTY,
@@ -718,18 +714,6 @@ public String getName() {
718714
}
719715
}
720716

721-
public static class GetType {
722-
private final String desc;
723-
724-
public GetType(@JsonProperty("desc") final String desc) {
725-
this.desc = desc;
726-
}
727-
728-
public String getDesc() {
729-
return desc;
730-
}
731-
}
732-
733717
public static final class Handle {
734718
private final int tag;
735719
private final String cname;
@@ -770,7 +754,6 @@ public boolean isIntf() {
770754
}
771755
}
772756

773-
@JsonIgnoreProperties(ignoreUnknown = true)
774757
@JsonTypeInfo(
775758
use = JsonTypeInfo.Id.NAME,
776759
include = JsonTypeInfo.As.PROPERTY,

0 commit comments

Comments
 (0)