JDK-7129786 : MirroredTypeException is thrown instead of MirroredTypesException
  • Type: Bug
  • Component: core-libs
  • Sub-Component: javax.lang.model
  • Affected Version: 6u29
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_7
  • CPU: x86
  • Submitted: 2012-01-13
  • Updated: 2012-05-25
  • Resolved: 2012-01-13
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :


A DESCRIPTION OF THE PROBLEM :
When attemping to call getValue() method on annotation which is supposed to return an array of Class objects, a MirrorTypeException is thrown instead of MirrorTypesException. Because of that only first value of Class[] and not entire array can be read.

This bug was reported before and can be found at this page:
http://bugs.sun.com/view_bug.do?bug_id=6519115

Unfortunately the resolution was provided only for version 7 of java and it is necessary for my company to have it fixed on version 6.

REGRESSION.  Last worked in version 5.0


REPRODUCIBILITY :
This bug can be reproduced always.

Comments
EVALUATION Fixed in jdk7 via 6519115.
13-01-2012