commit | ba701bd10ca9b1c977ccccb43b4ec0ffd8c02e83 | [log] [tgz] |
---|---|---|
author | bobv@google.com <bobv@google.com@8db76d5a-ed1c-0410-87a9-c151d255dfc7> | Fri Jul 08 14:45:22 2011 +0000 |
committer | bobv@google.com <bobv@google.com@8db76d5a-ed1c-0410-87a9-c151d255dfc7> | Fri Jul 08 14:45:22 2011 +0000 |
tree | ef59557762dde6751faafe9c3caf753717105e36 | |
parent | 9db1cb35be120927375aa4fac66efc83cf5569a9 [diff] |
Bypass RfValidatorTest when no JDK is available. Patch by: bobv Review by: rchandia Review at http://gwt-code-reviews.appspot.com/1465810 git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@10431 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/test/com/google/web/bindery/requestfactory/apt/RfValidatorTest.java b/user/test/com/google/web/bindery/requestfactory/apt/RfValidatorTest.java index c57ae33..0417c0d 100644 --- a/user/test/com/google/web/bindery/requestfactory/apt/RfValidatorTest.java +++ b/user/test/com/google/web/bindery/requestfactory/apt/RfValidatorTest.java
@@ -131,6 +131,10 @@ */ private void testGeneratedMessages(Class<?>... classes) { JavaCompiler compiler = ToolProvider.getSystemJavaCompiler(); + if (compiler == null) { + // This test is being run without a full JDK + return; + } List<JavaFileObject> files = new ArrayList<JavaFileObject>(classes.length); for (Class<?> clazz : classes) {