-
Notifications
You must be signed in to change notification settings - Fork 3.4k
[Java] Use Table's fully qualified path #8729
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
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.
|
@nevi-me why the alias _Vector for Vector? |
|
Same reason; conflicts with user-defined types named @nevi-me I think this change might be missing our change to the code from |
|
@nevi-me this seems to be causing test failures, do you have possiblity to look at it? |
I'll take a look today, thanks |
|
the renaming to |
|
@aardappel Well, rather than complain about it, we're putting together this PR :) It's not a "possible name clash" for us, it's an actual name clash, and we have deployed code where renaming our Vector type is a really expensive change to make. What would you suggest as an alternative? |
|
Why not just fully qualify as with Table? |
|
"renaming our Vector type is a really expensive change to make" yes, that's just what I said about making the change on the FlatBuffers side. Except it is 1 user (you) vs potentially many FlatBuffers users affected, depending on how this collision gets fixed. Maybe first lets understand the problem. How is your custom vector type set up in a way that it collides with these FlatBuffers Vector types, and why is that unavoidable? Agree with @bjornharrtell that in theory this should all be solvable with qualifying. |
It's a table type called |
I'm not convinced of rename of Vector.
|
it seems there is some overlap with this PR and #8581 |
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