hg: valhalla/valhalla/langtools: Values types must be "all final".
pbenedict at apache.org
Thu Jul 31 03:31:14 UTC 2014
I've been thinking about this. When it comes to how enums were speced, they
didn't need "final" or "class" specifiers (yes, an enum literal can be a
subclass but ignore that for now). So I am not sure all these explicit
qualifiers are helpful for writing value classes too. Granted, this is the
straw man implementation, but I would like to hear anyone's thoughts on
just making it "public value ClassName".
On Jul 30, 2014 5:08 PM, <paul.govereau at oracle.com> wrote:
> Changeset: ecff516ac894
> Author: pgovereau
> Date: 2014-07-30 17:05 -0400
> Values types must be "all final".
> ! src/share/classes/com/sun/tools/javac/comp/TransValues.java
> ! src/share/classes/com/sun/tools/javac/resources/compiler.properties
> + test/tools/javac/diags/examples/ValueFinal.java
> + test/tools/javac/valhalla/values/CheckFInal.out
> + test/tools/javac/valhalla/values/CheckFinal.java
> + test/tools/javac/valhalla/values/CheckFinal.out
More information about the valhalla-dev