Skip to content

Conversation

naijun0403
Copy link
Contributor

@naijun0403 naijun0403 commented Aug 1, 2022

fix #1237

Copy link
Contributor

@tonygermano tonygermano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer to not add a new method to ScriptRuntime only to support a version of Android that has itself been unsupported by Google for 4 years.

I think it would be reasonable and have minimal impact to revert/rewrite the other sections to not use the unsupported method.

Instead, the code that originally used the method is changed to work even if it is not used
@gbrail
Copy link
Collaborator

gbrail commented Aug 5, 2022

This looks reasonable to me. putIfAbsent is mainly a useful thing to have in concurrent hash maps. I'll test it out.

@gbrail gbrail merged commit 0497ce6 into mozilla:master Aug 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rhino 1.7.14 is not available under Android SDK 21,java.lang.NoSuchMethodError: java.util.Map.putIfAbsent
3 participants