We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b48a36d commit 8743fe9Copy full SHA for 8743fe9
src/main/java/org/json/JSONObject.java
@@ -3440,7 +3440,7 @@ public <T> T fromJson(Class<T> clazz) {
3440
return obj;
3441
} catch (NoSuchMethodException e) {
3442
throw new JSONException("No no-arg constructor for class: " + clazz.getName(), e);
3443
- } catch (InstantiationException | IllegalAccessException | InvocationTargetException e) {
+ } catch (Exception e) {
3444
throw new JSONException("Failed to instantiate or set field for class: " + clazz.getName(), e);
3445
}
3446
0 commit comments