hg: valhalla/valhalla: Tighten up a few loose ends in attribution and code generation for withfield

Srikanth srikanth.adayapalam at oracle.com
Mon Feb 12 06:22:01 UTC 2018



On Monday 12 February 2018 11:43 AM, srikanth.adayapalam at oracle.com wrote:
> Changeset: 5df93aa2bdc4
> Author:    sadayapalam
> Date:      2018-02-12 11:38 +0530
> URL:       http://hg.openjdk.java.net/valhalla/valhalla/rev/5df93aa2bdc4
>
> Tighten up a few loose ends in attribution and code generation for withfield

Notes:

     - Allow withfield to be used only with instance fields
     - Allow withfield to be used only with value classes and not object 
classes.
     - Only value classes may declare a value factory.

Srikanth

>
> ! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java
> ! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/MemberEnter.java
> ! src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/Gen.java
> ! src/jdk.compiler/share/classes/com/sun/tools/javac/resources/compiler.properties
> ! test/langtools/tools/javac/diags/examples.not-yet.txt
> ! test/langtools/tools/javac/valhalla/lworld-values/CheckMakeDefault.out
> + test/langtools/tools/javac/valhalla/lworld-values/CheckStaticFactoryNonValueClass.java
> + test/langtools/tools/javac/valhalla/lworld-values/CheckStaticFactoryNonValueClass.out
> + test/langtools/tools/javac/valhalla/lworld-values/CheckStaticFinalAssign.java
> + test/langtools/tools/javac/valhalla/lworld-values/CheckStaticFinalAssign.out



More information about the valhalla-dev mailing list