Skip to content
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

Un-finalize LightSource.lumens #3903

Merged

Conversation

kwvanderlinde
Copy link
Collaborator

@kwvanderlinde kwvanderlinde commented Apr 7, 2023

Identify the Bug or Feature request

Fixes #3902

Description of the Change

Java's constant propagation was getting cute, preventing our readResolve() logic from detecting upgraded light sources. Removing final makes JVM respect other values that might be deserialized into the field, allowing readResolve() to function properly.

Possible Drawbacks

None

Documentation Notes

N/A

Release Notes

N/A


This change is Reviewable

Java's constant propagation was preventing our `readResolve()` logic from detecting upgraded light sources.
@cwisniew cwisniew merged commit 2dbcfbf into RPTools:develop Apr 12, 2023
@kwvanderlinde kwvanderlinde deleted the bugfix/3902-fix-upgraded-lumens-values branch April 13, 2023 04:51
@cwisniew cwisniew added the bug label Apr 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Light lumens are replaced by 100 when upgrading to 1.13.0-beta.1
2 participants