[kaffe] Random characters in expected IllegalAccessError message

Daniel Bonniot Daniel.Bonniot at inria.fr
Sat Mar 26 09:36:50 PST 2005


Hi,

Consider the following jasmin bytecode:

.class public Illegal
.super java/lang/Object

;
; standard initializer
.method public <init>()V
    aload_0

    invokenonvirtual java/lang/Object/<init>()V
    return
.end method

.method public static main([Ljava/lang/String;)V
    .limit stack 2

    new java/util/LinkedList
    dup
    invokenonvirtual java/util/LinkedList/<init>()V

    ; This is an illegal access
    getfield java/util/LinkedList/size I

    return
.end method


$ jasmin Illegal.j

$ java Illegal
Exception in thread "main" java.lang.IllegalAccessError: tried to access field
java.util.LinkedList.size from class Illegal
         at Illegal.main(Illegal.j)

$ kaffe Illegal
java.lang.IllegalAccessError: 1˜.size
    at Illegal.main (Illegal.j)


The error message has a funny character, that cannot be displayed in this 
email. According to od -x it's character 31.

Daniel





More information about the kaffe mailing list