Bug#263161: [kaffe] kaffe: different compilers giving different results for the same source file

Rogério Brito rbrito at ime.usp.br
Fri Aug 6 08:52:35 PDT 2004


On Aug 06 2004, Arnaud Vandyck wrote:
> No problem, closin' it ;-)

I'm ok with that.

> > Oh, thanks. That's precisely the kind of answer that I was looking for.
> 
> super is a reserved word, I don't know what you are trying to do?

Well, I know that super is a reserved word, in the same sense that while is
or that class is.

I was just trying to understand if that exact use of super was legal or
not, which Ito Kazumitsu kindly explained that it wasn't, and that it was
very possibly a bug in Kaffe's compiler.

A bug which I can live with, BTW.

> Also, if you do:
> That that = this;
> 
> 'that' will be 'super' + something ;-) that's the OO programming,
> welcome in the 4th dimension :-D

I'm not exactly a novice to OO programming (although I still have a lot to
learn about it). I was just puzzled that the construction

	That that = this;

is legal, while

	That that = super;

is not.

> [...]
> 
> > BTW, just for curiosity's sake, has this use of "super" alone been
> > deprecated from the language? I'm asking this because it was used in
> > the (very old) James Gosling's book on Java that I have here.
> 
> I never saw that, sorry.

Dalibor kindly told that the specification of the language changes in
subtle ways from release to release of the JDK. I guess that Java is still
a moving target, but, at least, it is better than other languages out
there, anyway, which change radically with every new release.


Thanks for all your work and replies, Rogério.

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  Rogério Brito - rbrito at ime.usp.br - http://www.ime.usp.br/~rbrito
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=




More information about the kaffe mailing list