Compile a method named class$

Dear all, is it possible to compile an auto-generated method like that:

? thanx in advance

1 comment
Comment actions Permalink

Sun's 1.4.2_02 compiler for Windows won't do it. It will compile a method named $class.

class$ also fails as an identifier used for a local variable.

According to section 3.8 on Identifiers of the Java Language Specification[/url], class$ should be allowed.

It looks like you've uncovered a bug.


Please sign in to leave a comment.