-
Bug
-
Resolution: Fixed
-
P4
-
6, 7u45, 9
-
b129
-
x86_64
-
linux
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8201694 | 8u192 | Unassigned | P4 | Resolved | Fixed | b01 |
JDK-8196283 | 8u191 | Unassigned | P4 | Resolved | Fixed | b01 |
JDK-8201096 | 8u181 | Unassigned | P4 | Resolved | Fixed | b01 |
JDK-8194091 | 8u172 | Sean Coffey | P4 | Resolved | Fixed | b02 |
JDK-8194748 | 8u171 | Unassigned | P4 | Resolved | Fixed | b02 |
JDK-8194658 | 8u162 | Unassigned | P4 | Closed | Fixed | b31 |
JDK-8203131 | emb-8u181 | Unassigned | P4 | Resolved | Fixed | master |
JDK-8198184 | emb-8u171 | Unassigned | P4 | Resolved | Fixed | b02 |
JDK-8203745 | openjdk7u | Unassigned | P4 | Resolved | Fixed | master |
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Darwin retina.dellroad.org 12.5.0 Darwin Kernel Version 12.5.0: Sun Sep 29 13:33:47 PDT 2013; root:xnu-2050.48.12~1/RELEASE_X86_64 x86_64
A DESCRIPTION OF THE PROBLEM :
Class name is repeated in output of Type.toString() for inner class.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Compile and run this program:
public class xx {
public static void main(String[] args) throws Exception {
System.out.println(xx.class.getMethod("foo").getGenericReturnType());
}
public java.util.Map.Entry<String, String> foo() {
return null;
}
}
2. Note bogus output
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
java.util.Map$Entry<java.lang.String, java.lang.String>
ACTUAL -
java.util.Map.java.util.Map$Entry<java.lang.String, java.lang.String>
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
public class xx {
public static void main(String[] args) throws Exception {
System.out.println(xx.class.getMethod("foo").getGenericReturnType());
}
public java.util.Map.Entry<String, String> foo() {
return null;
}
}
---------- END SOURCE ----------
- backported by
-
JDK-8194091 Class name repeated in output of Type.toString()
-
- Resolved
-
-
JDK-8194748 Class name repeated in output of Type.toString()
-
- Resolved
-
-
JDK-8196283 Class name repeated in output of Type.toString()
-
- Resolved
-
-
JDK-8198184 Class name repeated in output of Type.toString()
-
- Resolved
-
-
JDK-8201096 Class name repeated in output of Type.toString()
-
- Resolved
-
-
JDK-8201694 Class name repeated in output of Type.toString()
-
- Resolved
-
-
JDK-8203131 Class name repeated in output of Type.toString()
-
- Resolved
-
-
JDK-8203745 Class name repeated in output of Type.toString()
-
- Resolved
-
-
JDK-8194658 Class name repeated in output of Type.toString()
-
- Closed
-
- duplicates
-
JDK-8194090 Method.getGenericReturnType returning wrong value
-
- Closed
-
-
JDK-6376382 (reflect) Confusing output for ParameterizedTypeImpl.toString() with nested class parameter
-
- Closed
-
-
JDK-8020194 Class.getGenericInterfaces()[index].toString() duplicates outer class name
-
- Closed
-
- relates to
-
JDK-6199150 (reflect) Bad interaction between generic signatures, inner classes, and reflection
-
- Closed
-