// Not an unboxable type - could be primitive, array, not a type at all, etc.
throw new IllegalArgumentException("Given type mirror cannot be unboxed"); //$NON-NLS-1$
}
ReferenceBinding boxed = (ReferenceBinding)((TypeMirrorImpl)t)._binding;
TypeBinding unboxed = _env.getLookupEnvironment().computeBoxingType(boxed);
if (unboxed.kind() != Binding.BASE_TYPE) {
// No boxing conversion was found
throw new IllegalArgumentException();
}
return (PrimitiveType) _env.getFactory().newTypeMirror((BaseTypeBinding)unboxed);
}