-
Bug
-
Resolution: Fixed
-
P2
-
5.0
-
b59
-
generic
-
solaris_8
The specified set of Formatter constructors results in the following unfortunate ambiguity:
T.java:4: reference to Formatter is ambiguous, both method Formatter(java.lang.Appendable) in java.util.Formatter and method Formatter(java.io.OutputStream) in java.util.Formatter match
Formatter f = new Formatter(System.out);
^
T.java:4: reference to Formatter is ambiguous, both method Formatter(java.lang.Appendable) in java.util.Formatter and method Formatter(java.io.OutputStream) in java.util.Formatter match
Formatter f = new Formatter(System.out);
^