Asms
This commit is contained in:
@@ -201,9 +201,10 @@ public final class Asms {
|
|||||||
mv.visitTypeInsn(CHECKCAST, "[J");
|
mv.visitTypeInsn(CHECKCAST, "[J");
|
||||||
} else if (clazz == double[].class) {
|
} else if (clazz == double[].class) {
|
||||||
mv.visitTypeInsn(CHECKCAST, "[D");
|
mv.visitTypeInsn(CHECKCAST, "[D");
|
||||||
|
} else if (clazz.isArray()) {
|
||||||
|
mv.visitTypeInsn(CHECKCAST, Type.getDescriptor(clazz));
|
||||||
} else {
|
} else {
|
||||||
mv.visitTypeInsn(
|
mv.visitTypeInsn(CHECKCAST, clazz.getName().replace('.', '/'));
|
||||||
CHECKCAST, (clazz.isArray() ? "[" : "") + clazz.getName().replace('.', '/'));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
package org.redkale.test.source;
|
package org.redkale.test.source;
|
||||||
|
|
||||||
import java.math.BigInteger;
|
import java.math.BigInteger;
|
||||||
|
import java.util.Set;
|
||||||
import org.redkale.convert.json.JsonConvert;
|
import org.redkale.convert.json.JsonConvert;
|
||||||
import org.redkale.persistence.Id;
|
import org.redkale.persistence.Id;
|
||||||
|
|
||||||
@@ -18,6 +19,8 @@ public class FullBean {
|
|||||||
|
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
|
private String[] remarks;
|
||||||
|
|
||||||
private byte[] img;
|
private byte[] img;
|
||||||
|
|
||||||
private BigInteger number;
|
private BigInteger number;
|
||||||
@@ -48,6 +51,8 @@ public class FullBean {
|
|||||||
|
|
||||||
private Double money2;
|
private Double money2;
|
||||||
|
|
||||||
|
private Set<Integer> ids;
|
||||||
|
|
||||||
public long getSeqid() {
|
public long getSeqid() {
|
||||||
return seqid;
|
return seqid;
|
||||||
}
|
}
|
||||||
@@ -65,6 +70,23 @@ public class FullBean {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String[] getRemarks() {
|
||||||
|
return remarks;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRemarks(String[] remarks) {
|
||||||
|
this.remarks = remarks;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Set<Integer> getIds() {
|
||||||
|
return ids;
|
||||||
|
}
|
||||||
|
|
||||||
|
public FullBean setIds(Set<Integer> ids) {
|
||||||
|
this.ids = ids;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
public byte getBit() {
|
public byte getBit() {
|
||||||
return bit;
|
return bit;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
package org.redkale.test.source;
|
package org.redkale.test.source;
|
||||||
|
|
||||||
import java.math.BigInteger;
|
import java.math.BigInteger;
|
||||||
|
import java.util.Set;
|
||||||
import org.redkale.convert.json.JsonConvert;
|
import org.redkale.convert.json.JsonConvert;
|
||||||
import org.redkale.persistence.Id;
|
import org.redkale.persistence.Id;
|
||||||
|
|
||||||
@@ -18,6 +19,8 @@ public class FullBean2 {
|
|||||||
|
|
||||||
public String name;
|
public String name;
|
||||||
|
|
||||||
|
public String[] remarks;
|
||||||
|
|
||||||
public byte[] img;
|
public byte[] img;
|
||||||
|
|
||||||
public BigInteger number;
|
public BigInteger number;
|
||||||
@@ -48,6 +51,8 @@ public class FullBean2 {
|
|||||||
|
|
||||||
public Double money2;
|
public Double money2;
|
||||||
|
|
||||||
|
public Set<Integer> ids;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return JsonConvert.root().convertTo(this);
|
return JsonConvert.root().convertTo(this);
|
||||||
|
|||||||
Reference in New Issue
Block a user