Mercurial > hg > graal-compiler
diff graal/com.oracle.jvmci.hotspot/src/com/oracle/jvmci/hotspot/HotSpotOptions.java @ 21760:55058b8000ea
updated javadoc to document that JVMCI services are disjoint from the standard service loading mechanism and tightened generic type constraint such that Services and @ServiceProcessor can only be used with classes implementing Service
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Sat, 06 Jun 2015 09:23:37 +0200 |
parents | 93f282187d90 |
children | 5b9adb645217 |
line wrap: on
line diff
--- a/graal/com.oracle.jvmci.hotspot/src/com/oracle/jvmci/hotspot/HotSpotOptions.java Fri Jun 05 23:54:02 2015 +0200 +++ b/graal/com.oracle.jvmci.hotspot/src/com/oracle/jvmci/hotspot/HotSpotOptions.java Sat Jun 06 09:23:37 2015 +0200 @@ -25,7 +25,6 @@ import java.util.*; import com.oracle.jvmci.options.*; -import com.oracle.jvmci.service.*; //JaCoCo Exclude @@ -42,7 +41,8 @@ */ static void printFlags() { SortedMap<String, OptionDescriptor> options = new TreeMap<>(); - for (Options opts : Services.load(Options.class)) { + + for (Options opts : ServiceLoader.load(Options.class, HotSpotOptions.class.getClassLoader())) { for (OptionDescriptor desc : opts) { if (isHotSpotOption(desc)) { String name = desc.getName();