-
-
Notifications
You must be signed in to change notification settings - Fork 942
Closed
Milestone
Description
In jruby 9.3.1.0, I get an error when there are multiple super in the constructor of a class that inherits from a Java class, is this a limitation?
Environment Information
jruby 9.3.1.0 (2.6.8) 2021-10-13 2e01e71 OpenJDK 64-Bit Server VM 11.0.11+9-Ubuntu-0ubuntu2.20.04 on 11.0.11+9-Ubuntu-0ubuntu2.20.04 +jit [linux-x86_64]
Expected Behavior
test.rb
java_import 'java.util.BitSet'
class MyBitSet < BitSet
def initialize
if true
super
else
super
end
end
end
MyBitSet.new$ jruby-9.2.20.0/bin/jruby -v test.rb
jruby 9.2.20.0 (2.5.8) 2021-11-02 1a3255440b OpenJDK 64-Bit Server VM 11.0.11+9-Ubuntu-0ubuntu2.20.04 on 11.0.11+9-Ubuntu-0ubuntu2.20.04 +jit [linux-x86_64]
Actual Behavior
$ jruby-9.3.1.0/bin/jruby -v test.rb
jruby 9.3.1.0 (2.6.8) 2021-10-13 2e01e7199d OpenJDK 64-Bit Server VM 11.0.11+9-Ubuntu-0ubuntu2.20.04 on 11.0.11+9-Ubuntu-0ubuntu2.20.04 +jit [linux-x86_64]
RuntimeError: Found multiple supers in java ctor
<main> at test.rb:13
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels