# HG changeset patch # User Doug Simon # Date 1422659974 -3600 # Node ID c198e397bb594db2edd6673aeb1e982241a7ead1 # Parent b300d1f6e8175ae3f7192b981584fdff973f2847 improved error message when Service loading fails diff -r b300d1f6e817 -r c198e397bb59 graal/com.oracle.graal.api.runtime/src/com/oracle/graal/api/runtime/Services.java --- a/graal/com.oracle.graal.api.runtime/src/com/oracle/graal/api/runtime/Services.java Fri Jan 30 20:52:39 2015 +0100 +++ b/graal/com.oracle.graal.api.runtime/src/com/oracle/graal/api/runtime/Services.java Sat Jan 31 00:19:34 2015 +0100 @@ -38,7 +38,9 @@ protected List computeValue(Class type) { Service[] names = getServiceImpls(type); if (names == null || names.length == 0) { - throw new InternalError(format("No implementations for %s found (ensure %s extends %s)", type.getSimpleName(), type.getSimpleName(), Service.class)); + throw new InternalError( + format("No implementations for %s found (ensure %s extends %s and that in suite.py the \"annotationProcessors\" attribute for the project enclosing %s includes \"com.oracle.graal.service.processor\")", + type.getSimpleName(), type.getSimpleName(), Service.class, type.getSimpleName())); } return Arrays.asList(names); }