Skip to content

Commit 88cdea5

Browse files
committed
Fix specialization inconsistency in CastToJavaStringNode
1 parent 1d98f4f commit 88cdea5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/util/CastToJavaStringNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ static String doNativeObject(PythonNativeObject x,
9999
throw CannotCastException.INSTANCE;
100100
}
101101

102-
@Specialization(guards = "!isString(x)")
102+
@Specialization(guards = {"!isString(x)", "!isNativeObject(x)"})
103103
static String doUnsupported(@SuppressWarnings("unused") Object x) {
104104
throw CannotCastException.INSTANCE;
105105
}

0 commit comments

Comments
 (0)