Skip to content

Commit cc48643

Browse files
committed
Provide a clearer invalidation message when a method is overridden
1 parent 7b39a56 commit cc48643

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/truffleruby/core/method/MethodEntry.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ public final class MethodEntry {
2323

2424
public MethodEntry(InternalMethod method) {
2525
assert method != null;
26-
this.assumption = Truffle.getRuntime().createAssumption();
26+
this.assumption = Truffle.getRuntime().createAssumption("method is not overridden:");
2727
this.method = method;
2828
}
2929

3030
public MethodEntry() {
31-
this.assumption = Truffle.getRuntime().createAssumption();
31+
this.assumption = Truffle.getRuntime().createAssumption("method is not defined:");
3232
this.method = null;
3333
}
3434

0 commit comments

Comments
 (0)