[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [jdt-dev] Using var keyword with Java 8 target
|
Well the patch itself is trivial... this should actually work
Hi Stefan,
ecj is released standalone as well as the batch compiler - see https://download.eclipse.org/eclipse/downloads/drops4/R-4.19-202103031800/ [This link is from https://download.eclipse.org/eclipse/downloads/ and click 4.19]
Under this look for JDT Core Batch Compiler - you can download ecj from there.
Regards,
Manoj
-----Stefan Reich <stefan.reich.maker.of.eye@xxxxxxxxxxxxxx> wrote: -----
To: Manoj Palat <manoj.palat@xxxxxxxxxx>
From: Stefan Reich <stefan.reich.maker.of.eye@xxxxxxxxxxxxxx>
Date: 04/05/2021 04:21PM
Cc: "Eclipse JDT general developers list." <jdt-dev@xxxxxxxxxxx>
Subject: [EXTERNAL] Re: [jdt-dev] Using var keyword with Java 8 target
Nevermind, I found it. I was just working on an older version of ecj (4.5.2 - it's not released standalone anymore, is it?). I found the "var" stuff in JDT core R4_19. On Mon, 5 Apr 2021 at 11:51, Stefan Reich <stefan.reich.maker.of.eye@xxxxxxxxxxxxxx ZjQcmQRYFpfptBannerStart
This Message Is From an External Sender
This message came from outside your organization. ZjQcmQRYFpfptBannerEnd
Nevermind, I found it. I was just working on an older version of ecj (4.5.2 - it's not released standalone anymore, is it?). I found the "var" stuff in JDT core R4_19.
On Mon, 5 Apr 2021 at 11:51, Stefan Reich <stefan.reich.maker.of.eye@xxxxxxxxxxxxxx> wrote:
Hmm, could you point me to where in the compiler the "var" keyword is handled? I'm happy to patch things myself :)
Thanks
On Mon, 5 Apr 2021 at 05:55, Manoj Palat <manoj.palat@xxxxxxxxxx> wrote:
Hi Stefan,
You are right that var is at compiler level since the type is inferred by the compiler.
However, since var was introduced at Java 10 as per the language specification, we cannot provide var at Java 8 level.
Thanks,
Manoj
-----"jdt-dev" <jdt-dev-bounces@xxxxxxxxxxx> wrote: -----
To: jdt-dev@xxxxxxxxxxx
From: Stefan Reich via jdt-dev
Sent by: "jdt-dev"
Date: 04/04/2021 11:41PM
Cc: Stefan Reich <stefan.reich.maker.of.eye@xxxxxxxxxxxxxx>
Subject: [EXTERNAL] [jdt-dev] Using var keyword with Java 8 target
Hi,
the "var" keyword is solely implemented on the compiler level, yes? So then, is it possibly to give an ECJ compiler flag that allows me to use the var keyword in code compiled for Java 8?
I'd really like to keep Java 8 compatibility, but the var keyword is so incredibly convenient...
Greetings,
Stefan
--
Stefan Reich
BotCompany.de // AGI in the making
_______________________________________________
jdt-dev mailing list
jdt-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jdt-dev
--
Stefan Reich
BotCompany.de // Java-based operating systems
--
Stefan Reich
BotCompany.de // Java-based operating systems
_______________________________________________
jdt-dev mailing list
jdt-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jdt-dev
--
Stefan Reich
BotCompany.de // Java-based operating systems