Skip to content

Validate ivar and const symbols from Java before adding to table.#5531

Merged
headius merged 1 commit intojruby:masterfrom
headius:error_before_symbol_store
Dec 18, 2018
Merged

Validate ivar and const symbols from Java before adding to table.#5531
headius merged 1 commit intojruby:masterfrom
headius:error_before_symbol_store

Conversation

@headius
Copy link
Member

@headius headius commented Dec 18, 2018

This uses the logic from #5523 to do the symbol validation within the ID logic. This allows it to raise for both existing symbols and new symbols, but new symbols are neither inserted into the table nor hard-referenced if an error is raised.

Fixes #5169.

@headius headius requested a review from enebo December 18, 2018 19:36
@headius headius added this to the JRuby 9.2.6.0 milestone Dec 18, 2018
@headius headius merged commit 2c99771 into jruby:master Dec 18, 2018
@headius headius deleted the error_before_symbol_store branch December 18, 2018 20:03
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.

1 participant