Heads-up -- incompatible changes coming
Maurizio Cimadamore
maurizio.cimadamore at oracle.com
Fri Jul 12 02:52:46 PDT 2013
On 12/07/13 02:01, Nick Williams wrote:
> On Jul 11, 2013, at 7:16 PM, Brian Goetz wrote:
>
>>> 1) Do these changes only make those classes compiled with -target=1.8 incompatible, or do they make even those classes compiled -target=1.6 with the JDK8 compiler incompatible?
>>> 2) Do these changes only make those classes containing lambdas and/or method references incompatible, or do they also make even classes without lambdas/references incompatible?
>> Only those compiled with -target=1.8 and which use Java 8 language features (lambdas or default methods). The latter rules out any other target.
> That's along the lines that I was thinking. Thanks!
>
> Nick
>
>
I would say that even classes w/o JDK 8 features (but compiled with
-target 8) will be affected as compiler will start adding bridges to
interfaces.
Maurizio
More information about the lambda-dev
mailing list