-
-
Notifications
You must be signed in to change notification settings - Fork 942
Closed
Milestone
Description
Environment
java version "1.8.0_191"
Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)
Actual behaviour
rvm get head
raises an error
Installing rvm gem in 1 gemsetsUnhandled Java exception: java.lang.NoSuchMethodError: java.nio.ByteBuffer.clear()Ljava/nio/ByteBuffer;
java.lang.NoSuchMethodError: java.nio.ByteBuffer.clear()Ljava/nio/ByteBuffer;
encode at org/jruby/RubyEncoding.java:306
doEncodeUTF8 at org/jruby/RubyEncoding.java:197
encodeBytelist at org/jruby/RubyString.java:6191
<init> at org/jruby/RubyString.java:377
newString at org/jruby/RubyString.java:468
newString at org/jruby/Ruby.java:3563
createFileClass at org/jruby/RubyFile.java:219
initCore at org/jruby/Ruby.java:1547
bootstrap at org/jruby/Ruby.java:1318
init at org/jruby/Ruby.java:1217
newInstance at org/jruby/Ruby.java:362
internalRun at org/jruby/Main.java:273
run at org/jruby/Main.java:234
main at org/jruby/Main.java:206
the problem is that I have a jruby's binary that was compiled with java 9, but executed with java 8.
Expected behaviour
this should be a workaround
https://jira.mongodb.org/browse/JAVA-2559
https://github.com/jruby/jruby/blob/master/core/src/main/java/org/jruby/RubyEncoding.java#L306
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels