1 package ch.ethz.prose.jvmai.jikesrvm.stub_weaver; 2 3 import com.ibm.JikesRVM.VM_JVMAI; 5 import ch.ethz.jvmai.Provider; 6 import ch.ethz.jvmai.JVMAspectInterface; 7 8 14 public 15 class JikesRVMProvider extends Provider { 16 17 public JikesRVMProvider() 18 { 19 try 20 { 21 VM_JVMAI.getInstance(); 22 } 23 catch (Throwable t) 24 { 25 System.err.println(""); 26 System.err.println("**************************************************"); 27 System.err.println("* *"); 28 System.err.println("* JikesRVMProvider doesn't work with this VM *"); 29 System.err.println("* *"); 30 System.err.println("**************************************************"); 31 System.err.println(t.toString()); 32 t.printStackTrace(); 33 System.err.println("**************************************************"); 34 System.err.println(""); 35 throw new RuntimeException ("JikesRVMProvider doesn't work with this VM"); 36 } 37 } 38 39 public JVMAspectInterface getAspectInterface() 40 { 41 return (JVMAspectInterface)VM_JVMAI.getInstance(); 42 } 43 } 44 | Popular Tags |