Skip to content

Version 1.6.0.1: Java library "flatbuffers-java" seems to be outdated. flatc generated Java sources can not be compiled against java-lib. #2

@StefanKiendl

Description

@StefanKiendl

Version 1.6.0.1:
Java library "flatbuffers-java" seems to be outdated. flatc generated Java sources can not be compiled against java-lib.

For
`
table HMap {
key: string(key);
val: string;
}

table Message {
a: string;
b: string;
ttl: ulong;
head: [HMap];
payload: [byte];
}
`
I get problems in the generated HMap class that methods "protected static int __offset(int vtable_offset, int offset, ByteBuffer bb)" and "protected static int __indirect(int offset, ByteBuffer bb)" from Table class are missing.

In google original code
https://github.com/google/flatbuffers/blob/master/java/com/google/flatbuffers/Table.java
both methods are there.

Further a referenced "Table.UTF8_CHARSET.get()" in the generated HMap is not found.

I'm not sure if this is a problem in your library. Maybe it is also there in googles variant. At least the last problem seems to be a general one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions