Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Suppress "this-escape" warnings from generated encoders and decoders #533

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

writeoncereadmany
Copy link

see #494

This is the simplest, least intrusive change to allow generated decoders to be built under JDK21 without warnings.

…coders, required for them to compile without warnings in JDK21
@writeoncereadmany
Copy link
Author

any objections to this?

@lucianoviana
Copy link
Contributor

hi - could you please suggest a dictionary so we can reproduce this warning?

@writeoncereadmany
Copy link
Author

I've attached the most minimal fix dictionary I could create that reproduces - just one application message with one field.

This yields a warning on HeaderEncoder as a result of the constructor, which calls beginStringAsCopy(), which is an instance method - not permitted (without generating a this-escape warning) under JDK21.

FIX44-artio.txt

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants