Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #23695

Re: A small exercise

Date 2013-04-28 14:05 +0100
From lipska the kat <"nospam at neversurrender dot co dot uk">
Organization Trollbusters 3
Newsgroups comp.lang.java.programmer
Subject Re: A small exercise
References (3 earlier) <LvqdnUgkK5sPJO7MnZ2dnUVZ7oydnZ2d@bt.com> <517b3461$0$32112$14726298@news.sunsite.dk> <2rWdnWTV7bz8FubMnZ2dnUVZ7qGdnZ2d@bt.com> <517c8241$0$32104$14726298@news.sunsite.dk> <2fednevwr_TPZuHMnZ2dnUVZ8uCdnZ2d@bt.com>
Message-ID <fqednfqEEsscg-DMnZ2dnUVZ8jidnZ2d@bt.com> (permalink)

Show all headers | View raw


On 28/04/13 11:34, Chris Uppal wrote:

[snip]

> I'm guessing (and I admit that I can find no other supporting evidence) that
> this is a bug in the compiler where code that is written on the assumption that
> "C" above must be a strictly enclosing class.  In those case the (equivalent)
> code would obviously be incorrect (and that goes for the blank-final example
> too).  In particular I suspect that its something going squiffy in the
> contorted logic that allows nested classes to refer to private fields of the
> [not actually] "enclosing" class at runtime: that horrible stuff that is added
> to circumvent the JVMs own checking.
>
> But I may as well admit that one piece of evidence against my guess is that
> both javac and Eclipse "fail" in the same way.

Not sure what you mean here as Eclipse can be configured to use 
different compilers independently of the version of Java used to run the 
application (Eclipse)

I configured Eclipse to compile against

java-7-openjdk
and, separately
java version 1.6.0_35

and both times came up with the same error

So, it's not actually Eclipse that barfed per-se but two different 
releases of the language ... which is leading me to believe that it's 
not a *bug* but a poorly understood (by me) application of the rules of 
the language by the compiler.

If I could just figure out what the rule was :-(

lipska

-- 
Lipska the Kat©: Troll hunter, sandbox destroyer
and farscape dreamer of Aeryn Sun

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: A small exercise lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-04-20 17:02 +0100
  Re: A small exercise Arne Vajhøj <arne@vajhoej.dk> - 2013-04-20 15:15 -0400
    Re: A small exercise lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-04-21 11:04 +0100
      Re: A small exercise Arne Vajhøj <arne@vajhoej.dk> - 2013-04-26 22:13 -0400
        Re: A small exercise lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-04-27 09:25 +0100
          Re: A small exercise Arne Vajhøj <arne@vajhoej.dk> - 2013-04-27 21:58 -0400
            Re: A small exercise "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2013-04-28 11:34 +0100
              Re: A small exercise Martin Gregorie <martin@address-in-sig.invalid> - 2013-04-28 12:17 +0000
              Re: A small exercise lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-04-28 14:05 +0100
                Re: A small exercise Sven Köhler <remove-sven.koehler@gmail.com> - 2013-04-28 16:14 +0300
                Re: A small exercise lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-04-28 14:54 +0100
                Re: A small exercise Arne Vajhøj <arne@vajhoej.dk> - 2013-04-28 09:57 -0400
              Re: A small exercise Arne Vajhøj <arne@vajhoej.dk> - 2013-04-28 10:14 -0400
  Re: A small exercise Sven Köhler <remove-sven.koehler@gmail.com> - 2013-04-27 22:28 +0300
    Re: A small exercise markspace <markspace@nospam.nospam> - 2013-04-27 13:53 -0700
      Re: A small exercise Arne Vajhøj <arne@vajhoej.dk> - 2013-04-27 21:44 -0400
    Re: A small exercise lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-04-28 10:37 +0100

csiph-web