wensiqun / asmsupport Goto Github PK
View Code? Open in Web Editor NEWThe project help developer create or modify class at runtime simply. it's base on ASM framework and provide a high level API like java struct
The project help developer create or modify class at runtime simply. it's base on ASM framework and provide a high level API like java struct
Lesson5.test1发生java.lang.VerifyError: Control flow falls through code end
Lesson4.test4发生java.lang.VerifyError: Control flow falls through code end
Lesson3.test2发生java.lang.VerifyError: Control flow falls through code end
new MethodBody() {
@Override
public void body(final LocVar... args) {
final FieldVar out = val(System.class).field("out");
out.call("println", args[0]);
final LocVar i = var("i", int.class, val(0));
//i<= 10;
//while(i <= 10){...}
while_(new While(le(i, val(10))) {
@Override
public void body() {
//System.out.println(i)
out.call("println", i);
//i++;
postinc(i);
}
});
return_();
}
};
1.这段代码创建出来的字节码将无法生成自增操作
2. 如果将方法体中的内容合并为'out.call("println", postincc(i));'则正常生成字节码。
canot cast from boolean or to boolean type!
if_(new IF(eq(null_(Double.class), val(Double.class).call("valueOf", val(2.2D)))) {... });
try-catch 程序块里如果 catch 块超过一个就会报错
Exception in thread "main" java.lang.ClassCastException: cn.wensiqun.asmsupport.client.block.Catch$2 cannot be cast to cn.wensiqun.asmsupport.core.block.method.AbstractMethodBody
at cn.wensiqun.asmsupport.core.block.KernelProgramBlock.getMethodBody(KernelProgramBlock.java:757)
at cn.wensiqun.asmsupport.core.block.KernelProgramBlock.getMethod(KernelProgramBlock.java:949)
at cn.wensiqun.asmsupport.core.block.KernelProgramBlock.getType(KernelProgramBlock.java:853)
at cn.wensiqun.asmsupport.core.block.control.exception.KernelCatch.getExceptionType(KernelCatch.java:90)
at cn.wensiqun.asmsupport.core.block.control.exception.ExceptionSerialBlock.appendEpisode(ExceptionSerialBlock.java:187)
at cn.wensiqun.asmsupport.core.block.control.exception.KernelCatch.catch_(KernelCatch.java:72)
at cn.wensiqun.asmsupport.client.block.Catch.catch_(Catch.java:59)
创建try catch finally。如果在try或者catch finally中通过链式接口调用报错StackOverflowError。主要原因是在try中的操作引用了try外层程序块的prepare方法。导致死循环嵌套。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.