test/tools/javac/synthesize/Float.java

Fri, 01 Aug 2008 15:23:18 -0700

author
jjg
date
Fri, 01 Aug 2008 15:23:18 -0700
changeset 86
3437676858e3
parent 0
959103a6100f
permissions
-rw-r--r--

6627362: javac generates code that uses array.clone, which is not available on JavaCard
6627364: javac needs Float and Double on the bootclasspath even when not directly used
6627366: javac needs Cloneable and Serializable on the classpath even when not directly used
Reviewed-by: darcy

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

mercurial