Skip to content

Commit 8743fe9

Browse files
committed
Updating to work with java 1.6
1 parent b48a36d commit 8743fe9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/json/JSONObject.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3440,7 +3440,7 @@ public <T> T fromJson(Class<T> clazz) {
34403440
return obj;
34413441
} catch (NoSuchMethodException e) {
34423442
throw new JSONException("No no-arg constructor for class: " + clazz.getName(), e);
3443-
} catch (InstantiationException | IllegalAccessException | InvocationTargetException e) {
3443+
} catch (Exception e) {
34443444
throw new JSONException("Failed to instantiate or set field for class: " + clazz.getName(), e);
34453445
}
34463446
}

0 commit comments

Comments
 (0)