JDK-7035160 : (reflect) test/java/lang/reflect/Generics/Probe.java failing
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang:reflect
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2011-04-08
  • Updated: 2012-09-28
  • Resolved: 2011-05-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7 b140Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
The recent changes to java.util.EnumMap and java.util.IdentityHashMap$Entry (6312706) mean that test/java/lang/reflect/Generics/Probe.java is now failing. The underlying issue is a long standing bug in the signature parser (6476261). Fixing the signature parser this late in jdk7 is likely to be risky so this new bug is submitted to track changing the test to avoid this issue.

$ java Probe
CLASS java.util.concurrent.FutureTask
  ok

CLASS java.util.concurrent.ConcurrentHashMap$EntryIterator
  ok

CLASS java.util.concurrent.ConcurrentHashMap$KeyIterator
  ok

CLASS java.util.concurrent.ConcurrentHashMap$ValueIterator
  ok

CLASS java.util.AbstractList$ListItr
  ok

CLASS java.util.EnumMap$EntryIterator
FIELD private java.util.EnumMap$EntryIterator$Entry java.util.EnumMap$EntryIterator.lastReturnedEntry
java.lang.reflect.GenericSignatureFormatError
  ERRORS:1

CLASS java.util.EnumMap$KeyIterator
  ERRORS:1

CLASS java.util.EnumMap$ValueIterator
  ERRORS:1

CLASS java.util.IdentityHashMap$EntryIterator
FIELD private java.util.IdentityHashMap$EntryIterator$Entry java.util.IdentityHashMap$EntryIterator.lastReturnedEntry
java.lang.reflect.GenericSignatureFormatError
  ERRORS:2

CLASS java.util.IdentityHashMap$KeyIterator
  ERRORS:2

CLASS java.util.IdentityHashMap$ValueIterator
  ERRORS:2

CLASS java.util.WeakHashMap$EntryIterator
  ERRORS:2

CLASS java.util.WeakHashMap$KeyIterator
  ERRORS:2

CLASS java.util.WeakHashMap$ValueIterator
  ERRORS:2

CLASS java.util.HashMap$EntryIterator
  ERRORS:2

CLASS java.util.HashMap$KeyIterator
  ERRORS:2

CLASS java.util.HashMap$ValueIterator
  ERRORS:2

CLASS java.util.LinkedHashMap$EntryIterator
  ERRORS:2

CLASS java.util.LinkedHashMap$KeyIterator
  ERRORS:2

CLASS java.util.LinkedHashMap$ValueIterator
  ERRORS:2
Exception in thread "main" java.lang.RuntimeException: Errors during probing.
        at Probe.main(Probe.java:71)

Comments
SUGGESTED FIX http://cr.openjdk.java.net/~mduigou/7035160/0/webrev/
18-04-2011

EVALUATION We need to modify the test so that it doesn't trip up on 6476261.
08-04-2011