-
Bug
-
Resolution: Fixed
-
P3
-
None
-
None
-
b40
-
generic
-
generic
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8084198 | emb-9 | Martin Buchholz | P3 | Resolved | Fixed | team |
JDK-8067593 | 8u45 | Ivan Gerasimov | P3 | Resolved | Fixed | b01 |
JDK-8066169 | 8u40 | Ivan Gerasimov | P3 | Resolved | Fixed | b17 |
JDK-8069955 | emb-8u47 | Ivan Gerasimov | P3 | Resolved | Fixed | team |
JDK-8072335 | 7u85 | Ivan Gerasimov | P3 | Resolved | Fixed | b01 |
JDK-8066170 | 7u80 | Ivan Gerasimov | P3 | Resolved | Fixed | b04 |
* at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:125)
* at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49)
* at sun.reflect.generics.repository.ClassRepository.getSuperclass(ClassRepository.java:84)
* at java.lang.Class.getGenericSuperclass(Class.java:692)
* at com.google.inject.TypeLiteral.getSuperclassTypeParameter(TypeLiteral.java:99)
* at com.google.inject.TypeLiteral.<init>(TypeLiteral.java:79)
while experimenting with fixes, we were surprised to discover that making reflection class fields final fixed the problem - that's never happened before on x86 in my memory. Although it's not reproducible on jdk8+, apparently because of the fix in
8016236: Class.getGenericInterfaces performance improvement
(which is also a correctness improvement!) we should preserve our work in jdk9 as well.
- backported by
-
JDK-8066169 Core reflection should use final fields whenever possible
-
- Resolved
-
-
JDK-8066170 Core reflection should use final fields whenever possible
-
- Resolved
-
-
JDK-8067593 Core reflection should use final fields whenever possible
-
- Resolved
-
-
JDK-8069955 Core reflection should use final fields whenever possible
-
- Resolved
-
-
JDK-8072335 Core reflection should use final fields whenever possible
-
- Resolved
-
-
JDK-8084198 Core reflection should use final fields whenever possible
-
- Resolved
-
- relates to
-
JDK-8064846 Lazy-init thread safety problems in core reflection
-
- Closed
-
-
JDK-8064517 Generic reflection classes still have some data races
-
- Closed
-
-
JDK-8064391 More thread safety problems in core reflection
-
- Closed
-