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


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

Re: A small exercise

Date 2013-04-28 14:54 +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 (5 earlier) <2rWdnWTV7bz8FubMnZ2dnUVZ7qGdnZ2d@bt.com> <517c8241$0$32104$14726298@news.sunsite.dk> <2fednevwr_TPZuHMnZ2dnUVZ8uCdnZ2d@bt.com> <fqednfqEEsscg-DMnZ2dnUVZ8jidnZ2d@bt.com> <au4lmaFekeuU1@mid.dfncis.de>
Message-ID <ZdmdnZzTWK27t-DMnZ2dnUVZ8kWdnZ2d@bt.com> (permalink)

Show all headers | View raw


On 28/04/13 14:14, Sven Köhler wrote:
> On 04/28/2013 04:05 PM, lipska the kat wrote:
>> Not sure what you mean here as Eclipse can be configured to use
>> different compilers
>
> Eclipse only has one compiler. It's specially written by IBM for
> Eclipse, and it's not based on javac as far as I know.
>
>> 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
>
> But each time, you're using Eclipse's compiler, and not the javac of the
> JDK.

OK, well, I'm no Eclipse expert so I'll have to look into that, in the 
meantime apologies to Chris Uppal, it appears he was correct and I was 
wrong.

For the time being let's call it the Eclipse compiler compliance level 
then, with compliance set to 1.6 or 1.7 the same error occurs

also, and independently of Eclipse

/usr/lib/jvm/java-7-openjdk-amd64/bin/javac Main.java
Main.java:10: error: cannot assign a value to final variable b
         Main.this.b = 0;

/opt/java/jdk1.6.0_35/bin/javac Main.java
Main.java:10: cannot assign a value to final variable b
         Main.this.b = 0;
                  ^
None of which changes my thought that

"it's not a *bug* but a poorly understood (by me) application of the 
rules of the language by the compiler"

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