hg: valhalla/valhalla: 8210906: [lworld] default value creation should not impose raw types on users.

Remi Forax forax at univ-mlv.fr
Wed Sep 19 10:27:10 UTC 2018


Hi Srikanth,
nice !

I also believe that the diamond syntax should be supported, 
  Option<String> empty = Option<>.default;
to allow inference as before this patch but only when explicitly asked by the user.

regards,
Rémi

----- Mail original -----
> De: "Srikanth" <srikanth.adayapalam at oracle.com>
> À: "valhalla-dev" <valhalla-dev at openjdk.java.net>
> Envoyé: Mercredi 19 Septembre 2018 08:37:32
> Objet: hg: valhalla/valhalla: 8210906: [lworld] default value creation should not impose raw types on users.

> Changeset: 6601da9e0237
> Author:    sadayapalam
> Date:      2018-09-19 12:07 +0530
> URL:       http://hg.openjdk.java.net/valhalla/valhalla/rev/6601da9e0237
> 
> 8210906: [lworld] default value creation should not impose raw types on users.
> 
> ! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Check.java
> ! src/jdk.compiler/share/classes/com/sun/tools/javac/parser/JavacParser.java
> + test/langtools/tools/javac/valhalla/lworld-values/ParameterizedDefault.java
> + test/langtools/tools/javac/valhalla/lworld-values/UncheckedDefault.java
> + test/langtools/tools/javac/valhalla/lworld-values/UncheckedDefault.out


More information about the valhalla-dev mailing list