diff --git a/java/com/google/flatbuffers/Table.java b/java/com/google/flatbuffers/Table.java index cc18d4f40..6199ed408 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();