We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ffeb05d + 9647023 commit c8fd89eCopy full SHA for c8fd89e
2 files changed
Rakefile
@@ -45,8 +45,7 @@ elsif RUBY_ENGINE == "jruby"
45
ext.name = "prism"
46
ext.ext_dir = "java"
47
ext.lib_dir = "tmp"
48
- ext.source_version = "1.8"
49
- ext.target_version = "1.8"
+ ext.release = "21"
50
ext.gem_spec = Gem::Specification.load("prism.gemspec")
51
end
52
templates/java/org/ruby_lang/prism/Loader.java.erb
@@ -59,10 +59,7 @@ public class Loader {
59
int length = buffer.getInt(offset + 4);
60
61
byte[] bytes = new byte[length];
62
- int position = buffer.position();
63
- buffer.position(start);
64
- buffer.get(bytes, 0, length);
65
- buffer.position(position);
+ buffer.get(start, bytes);
66
67
constant = loader.bytesToName(bytes);
68
cache[index] = constant;
0 commit comments