[Kaffe] ease of use patch.

Alex Nicolaou anicolao at mud.cgl.uwaterloo.ca
Wed Feb 24 09:47:51 PST 1999


Alex Blewitt wrote:
> This is how inner classes were 'mangled' into the bytecode. They are
> represented as OuterClass$InnerClass; the name is an illegal Java literal,
> but works fine in the JVM itself.

Technically you are right that OuterClass$InnerClass is an invalid java
literal, but I think you were trying to say that it is an invalid Java
identifier, which is not true. The JLS is pretty specific about $ being
allowed as a 'Java Letter'. The following code compiles without error
with javac in 1.2.

public class dollaridentifiers {
        int $at_beginning;
        int the$in_the_middle;
        int the_dollar_at_the_end$;
}


alex


More information about the kaffe mailing list