Lines Matching refs:Short
27 * @summary Test Short.decode method
33 * There are six methods in java.lang.Short which transform strings
34 * into a short or Short value:
36 * public Short(String s)
37 * public static Short decode(String nm)
40 * public static Short valueOf(String s, int radix)
41 * public static Short valueOf(String s)
49 short sh = (Short.decode(ashort)).shortValue();
51 throw new RuntimeException("Short.decode failed. String:" +
57 short n = (Short.decode(val)).shortValue();
63 check(new String(""+Short.MIN_VALUE), Short.MIN_VALUE);
64 check(new String(""+Short.MAX_VALUE), Short.MAX_VALUE);
84 check(Integer.toString((int)Short.MIN_VALUE), Short.MIN_VALUE);
85 check(Integer.toString((int)Short.MAX_VALUE), Short.MAX_VALUE);
87 checkFailure("0x-10", "Short.decode allows negative sign in wrong position.");
88 checkFailure("0x+10", "Short.decode allows positive sign in wrong position.");
93 checkFailure(Integer.toString((int)Short.MIN_VALUE - 1), "Out of range");
94 checkFailure(Integer.toString((int)Short.MAX_VALUE + 1), "Out of range");