diff options
author | Wouter van Oortmerssen <aardappel@gmail.com> | 2019-05-31 13:00:55 -0700 |
---|---|---|
committer | Wouter van Oortmerssen <aardappel@gmail.com> | 2019-05-31 13:00:55 -0700 |
commit | b652fcc3a7708f0cf5027748fd4d2df134eb6974 (patch) | |
tree | 81234c861c4cd401c0d4e01ba8a039aaf58b0f00 /tests/namespace_test/NamespaceA/NamespaceB/TableInNestedNS.java | |
parent | c978b9ef1f74c4918a33ee26217c85e5a5949a5b (diff) | |
download | flatbuffers-b652fcc3a7708f0cf5027748fd4d2df134eb6974.tar.gz flatbuffers-b652fcc3a7708f0cf5027748fd4d2df134eb6974.tar.bz2 flatbuffers-b652fcc3a7708f0cf5027748fd4d2df134eb6974.zip |
Break internal Java/C# APIs
This is done on purpose, to avoid API version mismatches that
can cause bad decoding results, see:
https://github.com/google/flatbuffers/issues/5368
Change-Id: I2c857438377e080caad0e2d8bcc758c9b19bd6ec
Diffstat (limited to 'tests/namespace_test/NamespaceA/NamespaceB/TableInNestedNS.java')
-rw-r--r-- | tests/namespace_test/NamespaceA/NamespaceB/TableInNestedNS.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/namespace_test/NamespaceA/NamespaceB/TableInNestedNS.java b/tests/namespace_test/NamespaceA/NamespaceB/TableInNestedNS.java index 1f6a8b1c..ec98258f 100644 --- a/tests/namespace_test/NamespaceA/NamespaceB/TableInNestedNS.java +++ b/tests/namespace_test/NamespaceA/NamespaceB/TableInNestedNS.java @@ -19,15 +19,15 @@ public final class TableInNestedNS extends Table { public static int createTableInNestedNS(FlatBufferBuilder builder, int foo) { - builder.startObject(1); + builder.startTable(1); TableInNestedNS.addFoo(builder, foo); return TableInNestedNS.endTableInNestedNS(builder); } - public static void startTableInNestedNS(FlatBufferBuilder builder) { builder.startObject(1); } + public static void startTableInNestedNS(FlatBufferBuilder builder) { builder.startTable(1); } public static void addFoo(FlatBufferBuilder builder, int foo) { builder.addInt(0, foo, 0); } public static int endTableInNestedNS(FlatBufferBuilder builder) { - int o = builder.endObject(); + int o = builder.endTable(); return o; } } |