diff graal/com.oracle.truffle.sl.tools/src/com/oracle/truffle/sl/tools/debug/SLREPLServer.java @ 21946:a50fa3266a0a

Truffle/SL/Debugging: add to the SLREPL debugger an artificial static dependency on SLLanguage, to ensure that it will be on the class path. This is a workaround for the lack of a mechanism to record such dynamic dependencies in the face of complaint by j"canonicalizeprojects".
author Michael Van De Vanter <michael.van.de.vanter@oracle.com>
date Tue, 16 Jun 2015 18:11:23 -0700
parents 894f82515e38
children
line wrap: on
line diff
--- a/graal/com.oracle.truffle.sl.tools/src/com/oracle/truffle/sl/tools/debug/SLREPLServer.java	Tue Jun 16 17:27:17 2015 -0700
+++ b/graal/com.oracle.truffle.sl.tools/src/com/oracle/truffle/sl/tools/debug/SLREPLServer.java	Tue Jun 16 18:11:23 2015 -0700
@@ -32,6 +32,7 @@
 import com.oracle.truffle.api.source.*;
 import com.oracle.truffle.api.vm.*;
 import com.oracle.truffle.api.vm.TruffleVM.Language;
+import com.oracle.truffle.sl.*;
 import com.oracle.truffle.tools.debug.engine.*;
 import com.oracle.truffle.tools.debug.shell.*;
 import com.oracle.truffle.tools.debug.shell.client.*;
@@ -48,6 +49,9 @@
  */
 public final class SLREPLServer implements REPLServer {
 
+    // TODO (mlvdv) remove when there's a better way to express this dependency
+    @SuppressWarnings("unused") private static final Class<SLLanguage> DYNAMIC_DEPENDENCY = com.oracle.truffle.sl.SLLanguage.class;
+
     public static void main(String[] args) {
         // Cheating for the prototype: start from SL, rather than from the client.
         final SLREPLServer server = new SLREPLServer();