219220221222223224225226
Annotation[] notes) throws Exception { try { TypeHelper helper = getTypeHelper(forClass, notes); return helper.toJava(object, forClass); } catch (ClassCastException e) { throw new TypeMismatchException(forClass, object.getClass()); } }
244245246247248249250251252
} catch (Exception e) { // type mismatch as mismatch of parameters count or parameters type if (e.getClass().equals(ClassCastException.class) || e.getClass() .equals(ArrayIndexOutOfBoundsException.class)) throw new TypeMismatchException(); } return result; }
281282283284285286287288289