test/tools/javac/synthesize/Double.java

Thu, 03 Feb 2011 09:36:28 +0000

author
mcimadamore
date
Thu, 03 Feb 2011 09:36:28 +0000
changeset 853
875262e89b52
parent 0
959103a6100f
permissions
-rw-r--r--

5017953: spurious cascaded diagnostics when name not found
Summary: when an operator is applied to one or more erroneous operands, spurious diagnostics are generated
Reviewed-by: jjg

     1 package java.lang;
     3 public class Double extends Number
     4 {
     5     public static Double valueOf(double v) {
     6         return new Double(v);
     7     }
     9     public Double(double v) {
    10         value = v;
    11     }
    13     public double doubleValue() {
    14         return value;
    15     }
    17     private double value;
    18 }

mercurial