Skip to content

[fix] @JRubyMethod error with required>=1 and var-args#9478

Merged
headius merged 1 commit into
jruby:jruby-10.0from
kares:anno-required-error-10
Jun 11, 2026
Merged

[fix] @JRubyMethod error with required>=1 and var-args#9478
headius merged 1 commit into
jruby:jruby-10.0from
kares:anno-required-error-10

Conversation

@kares

@kares kares commented Jun 5, 2026

Copy link
Copy Markdown
Member

fixing @JRubyMethod with IRubyObject[] and required >= 3

java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
	at org.jruby.dist/org.jruby.internal.runtime.methods.InvocationMethodFactory.loadArguments(InvocationMethodFactory.java:559)
	at org.jruby.dist/org.jruby.internal.runtime.methods.InvocationMethodFactory.createAnnotatedMethodInvocation(InvocationMethodFactory.java:782)
	at org.jruby.dist/org.jruby.internal.runtime.methods.InvocationMethodFactory.addAnnotatedMethodInvoker(InvocationMethodFactory.java:719)
	at org.jruby.dist/org.jruby.internal.runtime.methods.InvocationMethodFactory.getAnnotatedMethodClass(InvocationMethodFactory.java:279)
	at org.jruby.dist/org.jruby.internal.runtime.methods.InvocationMethodFactory.getAnnotatedMethod(InvocationMethodFactory.java:328)
	at org.jruby.dist/org.jruby.RubyModule.defineAnnotatedMethod(RubyModule.java:1400)
	at org.jruby.dist/org.jruby.RubyModule.defineAnnotatedMethod(RubyModule.java:1374)
	at org.jruby.dist/org.jruby.anno.TypePopulator$ReflectiveTypePopulator.populate(TypePopulator.java:119)
	at org.jruby.dist/org.jruby.RubyModule.defineAnnotatedMethodsIndividually(RubyModule.java:1368)
	at org.jruby.dist/org.jruby.RubyModule.defineAnnotatedMethods(RubyModule.java:1272)
	at org.netssh.bcrypt_pbkdf.BCryptPbkdfExt.load(BCryptPbkdfExt.java:18)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.jruby.dist/org.jruby.ext.jruby.JRubyUtilLibrary.loadExtension(JRubyUtilLibrary.java:258)
	at org.jruby.dist/org.jruby.ext.jruby.JRubyUtilLibrary.load_ext(JRubyUtilLibrary.java:219)

identified at net-ssh/bcrypt_pbkdf-ruby#30

@kares kares added this to the JRuby 10.0.6.0 milestone Jun 5, 2026
@headius headius merged commit 40bd33c into jruby:jruby-10.0 Jun 11, 2026
127 checks passed
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.

2 participants