File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
lkql_jit/language/src/main/java/com/adacore/lkql_jit/runtime/values/bases Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1818@ ExportLibrary (InteropLibrary .class )
1919public abstract class BasicLKQLValue implements LKQLValue {
2020
21- protected final InteropLibrary thisUncachedLibrary = InteropLibrary .getUncached (this );
21+ public InteropLibrary getUncachedLibrary () {
22+ return InteropLibrary .getUncached (this );
23+ }
2224
2325 // ----- Value methods -----
2426
@@ -47,21 +49,21 @@ public String toDisplayString(@SuppressWarnings("unused") boolean allowSideEffec
4749
4850 @ Override
4951 public String toString () {
50- return (String ) thisUncachedLibrary .toDisplayString (this );
52+ return (String ) getUncachedLibrary () .toDisplayString (this );
5153 }
5254
5355 @ Override
5456 public boolean equals (Object o ) {
5557 if (this == o ) return true ;
5658 if (!(o instanceof BasicLKQLValue other )) return false ;
5759 InteropLibrary otherUncached = InteropLibrary .getUncached (other );
58- return thisUncachedLibrary .isIdentical (this , other , otherUncached );
60+ return getUncachedLibrary () .isIdentical (this , other , otherUncached );
5961 }
6062
6163 @ Override
6264 public int hashCode () {
6365 try {
64- return thisUncachedLibrary .identityHashCode (this );
66+ return getUncachedLibrary () .identityHashCode (this );
6567 } catch (UnsupportedMessageException e ) {
6668 throw LKQLRuntimeException .shouldNotHappen (
6769 "All LKQL values must export an 'identityHashCode' message"
You can’t perform that action at this time.
0 commit comments