Caused by: compile error: invalid types for > at javassist.compiler.CodeGen.badTypes(CodeGen.java:1365) at javassist.compiler.CodeGen.convertOprandTypes(CodeGen.java:1426) at javassist.compiler.CodeGen.compareExpr(CodeGen.java:1316) at javassist.compiler.CodeGen.booleanExpr(CodeGen.java:1209) at javassist.compiler.CodeGen.compileBooleanExpr(CodeGen.java:261) at javassist.compiler.CodeGen.atIfStmnt(CodeGen.java:414) at javassist.compiler.CodeGen.atStmnt(CodeGen.java:385) at javassist.compiler.ast.Stmnt.accept(Stmnt.java:53) at javassist.compiler.CodeGen.atStmnt(CodeGen.java:381) at javassist.compiler.ast.Stmnt.accept(Stmnt.java:53) at javassist.compiler.CodeGen.atWhileStmnt(CodeGen.java:467) at javassist.compiler.CodeGen.atStmnt(CodeGen.java:387) at javassist.compiler.ast.Stmnt.accept(Stmnt.java:53) at javassist.compiler.CodeGen.atStmnt(CodeGen.java:381) at javassist.compiler.ast.Stmnt.accept(Stmnt.java:53) at javassist.compiler.CodeGen.atMethodBody(CodeGen.java:321) at javassist.compiler.CodeGen.atMethodDecl(CodeGen.java:303) at javassist.compiler.ast.MethodDecl.accept(MethodDecl.java:47) at javassist.compiler.Javac.compileMethod(Javac.java:175) at javassist.compiler.Javac.compile(Javac.java:102) at javassist.CtNewMethod.make(CtNewMethod.java:79) ... 4 more Exception in thread "main" java.lang.VerifyError: Bad type on operand stack Exception Details: Location: demo/service/DemoService$Proxy.<init>()V @8: putfield Reason: Type long_2nd (current frame, stack[2]) is not assignable to 'java/lang/Long' Current Frame: bci: @8 flags: { } locals: { 'demo/service/DemoService$Proxy' } stack: { 'demo/service/DemoService$Proxy', long, long_2nd } Bytecode: 0x0000000: 2ab7 00a4 2a14 00a5 b500 47b1
The reason for this is as follows:
long start = System.currentTimeMillis(); Long timeout = 3000L; if (System.currentTimeMillis() - start > timeout){ // TODO }
Long is the basic type, long is the wrapper type of long, and is an object. Basic types and objects cannot be compared directly. That’s the problem.
Similar Posts:
- MessagePack Error reported for deserialization of enumerated classes: Caused by: javassist.CannotCompileException: [source error] no such constructor: com.example..
- [Solved] Jedis:Exception in thread “main” java.lang.VerifyError: Bad type on operand stack
- ASM Type top (current frame, locals[3]) is not assignable [How to Solve]
- How to Solve compile error: package junit.framework does not exist
- [Solved] IDEA Maven Package Error: [ERROR] javac options source files
- [Solved] GeoTools GeoServer startup Error: java.lang.NoSuchMethodError: com.sun.tools.javac.util.JavacMessages.add
- MQ Startup Error: ERROR: Please set the JAVA_HOME variable in your environment, We need java(x64)! !!
- Solutions to the problem of Android studio pulling mpandroidchart always reporting gradle sync failed: could not download javassist.jar
- JAVA Command Error: A JNI error has occurred, please check your installation and try again [Solved]
- [Solved] lombok Error: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin