Repository navigation
Conversation
Ruby#newTypeError(String) is deprecated since 10.0.0.0 in favor of the org.jruby.api.Error helpers that take a ThreadContext. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
@headius two questions, then the plan. 1. Which branch? #9808 and #9809 (Kernel#readline, MonomorphicCallSite) target 2. PRs or an issue first? I can open one PR per warning type, or file an issue with the inventory below and let you pick which are worth doing before I touch code. Tell me which you'd rather. InventoryFrom the compile in the #9804 CI run. javac stops at 100 warnings per compile, so this undercounts; I'd re-count with
I'd do 4 through 7 and 9 first, then 1, and hold 2 and 8 until you say how you want them handled. I started with the |
One of the compiler deprecation warnings in CI (e.g. the #9804 run):
Ruby#newTypeError(String)is@Deprecated(since = "10.0.0.0"). The only caller flagged is the rescue-clause check inIRRuntimeHelpers.isRubyExceptionHandled, which already has aThreadContextand importsorg.jruby.api.Error.typeError.Same message, same exception class. This is deliberately the smallest possible cleanup so we can settle where this kind of PR should land (see the comment below) before doing the rest.
corecompiles; the warning is gone.🤖 Generated with Claude Code