diff --git a/java/com/google/flatbuffers/Table.java b/java/com/google/flatbuffers/Table.java index cc18d4f400d2b7c6ed97b974c3126d658cd08011..6199ed4085c5e543731edc6e115bde3af9d15fbe 100644 --- a/java/com/google/flatbuffers/Table.java +++ b/java/com/google/flatbuffers/Table.java @@ -122,7 +122,7 @@ public class Table { cr.throwException(); } } catch (CharacterCodingException x) { - throw new Error(x); + throw new RuntimeException(x); } return dst.flip().toString();