File tree 1 file changed +1
-12
lines changed
language-server/src/dotty/tools/languageserver
1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -100,18 +100,7 @@ class DottyLanguageServer extends LanguageServer
100
100
}
101
101
102
102
private def checkMemory () =
103
- if (Memory .isCritical())
104
- CompletableFutures .computeAsync { _ => restart(); new Object () }
105
- // new Object() necessary or we get a BootstrapMethodError:
106
- //
107
- // Caused by: java.lang.invoke.LambdaConversionException: Type mismatch for lambda expected return: void is not convertible to class java.lang.Object
108
- // at java.lang.invoke.AbstractValidatingLambdaMetafactory.validateMetafactoryArgs(AbstractValidatingLambdaMetafactory.java:286)
109
- // at java.lang.invoke.LambdaMetafactory.metafactory(LambdaMetafactory.java:303)
110
- // at java.lang.invoke.CallSite.makeSite(CallSite.java:302)
111
- // ... 11 more
112
- //
113
- // This looks like a problem with Dottys code generation for void-returning closures passed
114
- // to Java methods. (or SAM functions in general?)
103
+ if (Memory .isCritical()) CompletableFutures .computeAsync { _ => restart() }
115
104
116
105
/** The driver instance responsible for compiling `uri` */
117
106
def driverFor (uri : URI ): InteractiveDriver = {
You can’t perform that action at this time.
0 commit comments