Java: Fix mangling of inner-class names, take 2

Alexandre Petit-Bianco apbianco@cygnus.com
Wed Dec 19 21:31:00 GMT 2001


Bryce McKinlay writes:

> 1. There is no platform which libjava can build on that doesn't support 
> '$' in labels, because other Java labels (eg "class$") have always used 
> "$" without mangling it and there have been no reports of problems.

That's true.

> 2. C++ already completely ignores NO_DOLLAR_IN_LABEL except for some
> cruft in the old name mangler, so it makes sense for Java to do the
> same.

Yes.

> 3. If we ever want to build on a platform that cant deal with "$" in
> labels (unlikely), the mangling should really happen at a later
> stage in order to pick up other uses (such as the "class$") and be
> compatible between C++ and Java.

I guess.

> OK to commit?

OK, thanks.

./A



More information about the Java-patches mailing list