0 Replies Latest reply on Mar 22, 2008 2:32 PM by Guy Korland

    Autoboxing

    Guy Korland Newbie

      I'm trying to call a method with arguments that might need autoboxing.

      But I'm getting the following error:
      Caused by: compile error: f(org.p.test.main.AA,int,int) not found in org.p.MyClass
      at javassist.compiler.TypeChecker.atMethodCallCore(TypeChecker.java:716)
      at javassist.compiler.TypeChecker.atCallExpr(TypeChecker.java:682)

      when I tried to cast the int to Object I got the following error:
      Caused by: compile error: invalid cast
      at javassist.compiler.CodeGen.checkCastExpr(CodeGen.java:1397)
      at javassist.compiler.CodeGen.atCastExpr(CodeGen.java:1363)