hg: valhalla/valhalla: [lworld] Withdraw support for assignment syntax for value instance field updates (use __WithField operator instead)

Srikanth srikanth.adayapalam at oracle.com
Wed Mar 7 05:37:59 UTC 2018



On Wednesday 07 March 2018 11:05 AM, srikanth.adayapalam at oracle.com wrote:
> Changeset: 89a1f7673896
> Author:    sadayapalam
> Date:      2018-03-07 11:00 +0530
> URL:       http://hg.openjdk.java.net/valhalla/valhalla/rev/89a1f7673896
>
> [lworld] Withdraw support for assignment syntax for value instance field updates (use __WithField operator instead)

Tests that use field assignment syntax for value instance updates will 
start failing to compile. Please switch to using the __WithField 
operator instead.

e.g:

Point p = ...

p = __WithField(p.x, newxVal);  // instead of p.x = newxVal;

Thanks
Srikanth
> ! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java
> ! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/AttrContext.java
> ! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Flow.java
> ! src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/Gen.java
> ! src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/Items.java
> ! test/langtools/tools/javac/valhalla/lworld-values/CheckMakeDefault.java
> + test/langtools/tools/javac/valhalla/lworld-values/FinalFieldTest.java
> + test/langtools/tools/javac/valhalla/lworld-values/FinalFieldTest.out
> ! test/langtools/tools/javac/valhalla/lworld-values/FlattenableNegativeTest.java
> ! test/langtools/tools/javac/valhalla/lworld-values/FlattenableNegativeTest.out
> ! test/langtools/tools/javac/valhalla/lworld-values/Point.java
> ! test/langtools/tools/javac/valhalla/lworld-values/ValueCreationTest.java
> ! test/langtools/tools/javac/valhalla/lworld-values/WithFieldNegativeTests.java
> ! test/langtools/tools/javac/valhalla/lworld-values/WithFieldNegativeTests.out
>



More information about the valhalla-dev mailing list