From db225ed0a6bfee75cf7e989f3d4bd94e9ba4a476 Mon Sep 17 00:00:00 2001 From: Pavel Marek Date: Thu, 14 Nov 2024 18:09:55 +0100 Subject: [PATCH] EnsoObject.toDisplayString just throws AssertionError --- .../java/org/enso/interpreter/runtime/data/EnsoObject.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/engine/runtime/src/main/java/org/enso/interpreter/runtime/data/EnsoObject.java b/engine/runtime/src/main/java/org/enso/interpreter/runtime/data/EnsoObject.java index 4ca81883b7a..f70b676366d 100644 --- a/engine/runtime/src/main/java/org/enso/interpreter/runtime/data/EnsoObject.java +++ b/engine/runtime/src/main/java/org/enso/interpreter/runtime/data/EnsoObject.java @@ -1,6 +1,5 @@ package org.enso.interpreter.runtime.data; -import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary; import com.oracle.truffle.api.TruffleLanguage; import com.oracle.truffle.api.interop.InteropLibrary; import com.oracle.truffle.api.interop.TruffleObject; @@ -22,8 +21,8 @@ public abstract class EnsoObject implements TruffleObject { } @ExportMessage - @TruffleBoundary public Object toDisplayString(boolean allowSideEffects) { - return toString(); + // Not implemented on purpose - should be implemented by subclasses. + throw new AssertionError("unimplemented"); } }