This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: RFC: Lose use of $ and . in [cd]tor labels


Jason Merrill <jason@redhat.com> writes:

> >>>>> "Bryce" == Bryce McKinlay <bryce@waitaki.otago.ac.nz> writes:
> 
> > Jason Merrill wrote:
> 
> >> Would it be appropriate to change the Java frontend to stop using '$' in
> >> names that get mangled?
> 
> > Not really: the use of "$" as a nested class namespace separator (and as a
> > marker for artificial fields/parameters) is a part of the Java bytecode
> > ABI.
> 
> OK, that's a good reason.  Are they all represented as 'name$'?

In Java, '$' is treated as a letter "for historical reasons" though it
"should only be used in mechanically generated Java code or, rarely,
to access pre-existing names on legacy systems."  (From the 1st edition
language spec.)

Hence the answer to your question is "no",
-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/~per/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]