File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/java/org/truffleruby/interop Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1746,13 +1746,13 @@ private Object lookupJavaType(String name) {
1746
1746
public abstract static class JavaAddToClasspathNode extends PrimitiveArrayArgumentsNode {
1747
1747
1748
1748
@ TruffleBoundary
1749
- @ Specialization (guards = "strings.isRubyString(path)" )
1749
+ @ Specialization (guards = "strings.isRubyString(path)" , limit = "1" )
1750
1750
protected boolean javaAddToClasspath (Object path ,
1751
- @ CachedLibrary ( limit = "LIBSTRING_CACHE" ) RubyStringLibrary strings ) {
1751
+ @ Cached RubyStringLibrary strings ) {
1752
1752
TruffleLanguage .Env env = getContext ().getEnv ();
1753
1753
try {
1754
1754
TruffleFile file = FileLoader .getSafeTruffleFile (getLanguage (), getContext (),
1755
- strings .getJavaString (path ));
1755
+ RubyGuards .getJavaString (path ));
1756
1756
env .addToHostClassPath (file );
1757
1757
return true ;
1758
1758
} catch (SecurityException e ) {
You can’t perform that action at this time.
0 commit comments