-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P2
-
Affects Version/s: 5.0
-
Component/s: core-libs
-
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);
^