File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
src/main/java/org/truffleruby/cext Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 22
22
import org .truffleruby .language .control .RaiseException ;
23
23
24
24
import com .oracle .truffle .api .dsl .Cached ;
25
+ import com .oracle .truffle .api .dsl .Fallback ;
25
26
import com .oracle .truffle .api .dsl .ImportStatic ;
26
27
import com .oracle .truffle .api .dsl .Specialization ;
27
28
import com .oracle .truffle .api .interop .ForeignAccess ;
@@ -70,6 +71,11 @@ public Object unwrapTaggedObject(long handle) {
70
71
return getContext ().getValueWrapperManager ().getFromHandleMap (handle );
71
72
}
72
73
74
+ @ Fallback
75
+ public ValueWrapper unWrapUnexpectedHandle (long handle ) {
76
+ return null ;
77
+ }
78
+
73
79
public static UnwrapNativeNode create () {
74
80
return UnwrapNativeNodeGen .create ();
75
81
}
@@ -110,6 +116,11 @@ public ValueWrapper unwrapTaggedObject(long handle) {
110
116
return getContext ().getValueWrapperManager ().getWrapperFromHandleMap (handle );
111
117
}
112
118
119
+ @ Fallback
120
+ public ValueWrapper unWrapUnexpectedHandle (long handle ) {
121
+ return null ;
122
+ }
123
+
113
124
public static NativeToWrapperNode create () {
114
125
return NativeToWrapperNodeGen .create ();
115
126
}
You can’t perform that action at this time.
0 commit comments