-
Bug
-
Resolution: Fixed
-
P2
-
5.0
-
b58
-
generic
-
solaris_8
The following source:
class Props extends Hashtable<String,String> {}
is translated by javac info
class Props extends Hashtable {
/*synthetic*/ public Object remove(Object x0) {
return super.remove(x0);
}
/*synthetic*/ public Object put(Object x0, Object x1) {
return super.put((String)x0, (String)x1);
}
/*synthetic*/ public Object get(Object x0) {
return super.get(x0);
}
}
These bridge methods are unnecessary, and interfere with
retrofitting java.util.Properties as Hashtable<String,String>.
See also http://groups.yahoo.com/group/java-spec-report/message/1017
class Props extends Hashtable<String,String> {}
is translated by javac info
class Props extends Hashtable {
/*synthetic*/ public Object remove(Object x0) {
return super.remove(x0);
}
/*synthetic*/ public Object put(Object x0, Object x1) {
return super.put((String)x0, (String)x1);
}
/*synthetic*/ public Object get(Object x0) {
return super.get(x0);
}
}
These bridge methods are unnecessary, and interfere with
retrofitting java.util.Properties as Hashtable<String,String>.
See also http://groups.yahoo.com/group/java-spec-report/message/1017
- relates to
-
JDK-5060820 Generification conflict: Properties vs. javax.naming.directory.InitialDirContext
-
- Resolved
-
-
JDK-5054615 Generification conflict: Properties vs. javax.naming.InitialContext
-
- Resolved
-
-
JDK-5056707 Generification conflict: Properties vs. javax.naming.spi.ObjectFactory
-
- Resolved
-
-
JDK-5061476 Generification conflict: Properties vs. java.awt.image.ImageConsumer
-
- Resolved
-
-
JDK-5066747 TEST BUG: com/sun/jdi/GenericsTest.java
-
- Resolved
-
-
JDK-5062759 (reflect) Class.getDeclaredMethods returns array containing inherited methods
-
- Closed
-
(1 relates to)