1 Reply Latest reply: Apr 17, 2008 2:06 PM by Henry Story RSS

Is Java 6 completely supported?

Carlos XXXXX Newbie

I'm running into issues like

"""
Caused by: java.lang.ArrayIndexOutOfBoundsException: 5
at javassist.bytecode.StackMapTable$Walker.sameLocals(StackMapTable.java:240)
at javassist.bytecode.StackMapTable$Walker.stackMapFrames(StackMapTable.java:198)
"""

when instrumenting java 6 classes. The same classes compiled as java 5 are instrumented just fine.

I have seen similar reports in the jboss aop list. In general, the suggestion is to stick to java 5 for the time being.

So what is the status of java 6 support?

TIA
Regards
-Carlos

  • 1. Re: Is Java 6 completely supported?
    Henry Story Newbie

    I just discovered a similar problem. Someone wanted to recompile javassist code compile with java 6.

    [sommer] INFO: type=java.util.Collection
     [sommer] java.lang.ArrayIndexOutOfBoundsException: 3
     [sommer] at javassist.bytecode.ByteArray.write16bit(ByteArray.java:40)
     [sommer] at javassist.bytecode.StackMapTable$Shifter.update(StackMapTable
    .java:744)
     [sommer] at javassist.bytecode.StackMapTable$Shifter.sameFrame(StackMapTa
    ble.java:720)
     [sommer] at javassist.bytecode.StackMapTable$Walker.stackMapFrames(StackM
    apTable.java:194)
     [sommer] at javassist.bytecode.StackMapTable$Walker.parse(StackMapTable.j
    ava:179)
     [sommer] at javassist.bytecode.StackMapTable$Shifter.doit(StackMapTable.j
    ava:714)
     [sommer] at javassist.bytecode.StackMapTable.shiftPc(StackMapTable.java:6
    93)
     [sommer] at javassist.bytecode.CodeIterator.insertGap0(CodeIterator.java:
    676)
     [sommer] at javassist.bytecode.CodeIterator.insertGap(CodeIterator.java:6
    36)
     [sommer] at javassist.bytecode.CodeIterator.insertGapCore(CodeIterator.ja
    va:467)
     [sommer] at javassist.bytecode.CodeIterator.insertGap(CodeIterator.java:4
    13)
     [sommer] at javassist.expr.Expr.replace0(Expr.java:298)
     [sommer] at javassist.expr.FieldAccess.replace(FieldAccess.java:213)
     [sommer] at net.java.rdf.sommer.SommerEditor.edit(JavassistClassRewriter.
    java:775)
     [sommer] at javassist.expr.ExprEditor.loopBody(ExprEditor.java:197)
     [sommer] at javassist.expr.ExprEditor.doit(ExprEditor.java:90)
     [sommer] at javassist.CtClassType.instrument(CtClassType.java:1289)
     [sommer] at net.java.rdf.sommer.JavassistClassRewriter.transformFiles(Jav
    assistClassRewriter.java:277)


    this is from the https://sommer.dev.java.net project