diff --git a/truffle/com.oracle.truffle.api/src/META-INF/upgrade/nolamdas.hint b/truffle/com.oracle.truffle.api/src/META-INF/upgrade/nolamdas.hint index d95f827..804157f 100644 --- a/truffle/com.oracle.truffle.api/src/META-INF/upgrade/nolamdas.hint +++ b/truffle/com.oracle.truffle.api/src/META-INF/upgrade/nolamdas.hint @@ -1,6 +1,9 @@ 'Avoid use of lamdas in Truffle API': ($args$) -> $any :: inTruffleButNotInTest() ;; +'Avoid use of method literals in Truffle API': +$clazz \u003a\003a $member :: inTruffleButNotInTest() +;; {}; + + public final Runnable rn = String::new; + public final Runnable rr = SLException::noop; + + static void noop() { + } public SLException(String message) { super(message); CompilerAsserts.neverPartOfCompilation();