Skip to content

Conversation

@nevi-me
Copy link

@nevi-me nevi-me commented Oct 17, 2025

When a table's name is called Table, the Java bindings generated result in an error due to there being 2 Tables. This fixes the issue by fully qualifyng the flatbuffers Table import.

Fixes #8728

When a table's name is called `Table`, the Java bindings generated result in an error due to there being  2 Tables. This fixes the issue by fully qualifyng the flatbuffers Table import.
@github-actions github-actions bot added c++ codegen Involving generating code from schema java labels Oct 17, 2025
@bjornharrtell
Copy link
Collaborator

@nevi-me why the alias _Vector for Vector?

@bjornharrtell bjornharrtell self-requested a review November 24, 2025 07:34
@maxburke
Copy link
Contributor

Same reason; conflicts with user-defined types named Vector

@nevi-me I think this change might be missing our change to the code from idl_gen_java.cpp that does the renaming of Vector to _Vector

@bjornharrtell bjornharrtell requested review from aardappel and removed request for aardappel November 25, 2025 08:31
@bjornharrtell
Copy link
Collaborator

@nevi-me this seems to be causing test failures, do you have possiblity to look at it?

@nevi-me
Copy link
Author

nevi-me commented Nov 25, 2025

@nevi-me this seems to be causing test failures, do you have possiblity to look at it?

I'll take a look today, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ codegen Involving generating code from schema java

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Java] Schema types named 'Table' clash with the Table import

3 participants