This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch BCEL-267
in repository https://gitbox.apache.org/repos/asf/commons-bcel.git


The following commit(s) were added to refs/heads/BCEL-267 by this push:
     new aa71ee6  Fix build on Travis CI.
aa71ee6 is described below

commit aa71ee65e266a122ba150b6e7cb8d47c806a006c
Author: Gary Gregory <[email protected]>
AuthorDate: Mon Feb 11 09:57:14 2019 -0500

    Fix build on Travis CI.
---
 src/test/java/org/apache/bcel/util/BCELifierTestCase.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test/java/org/apache/bcel/util/BCELifierTestCase.java 
b/src/test/java/org/apache/bcel/util/BCELifierTestCase.java
index 7ec313d..ceb7213 100644
--- a/src/test/java/org/apache/bcel/util/BCELifierTestCase.java
+++ b/src/test/java/org/apache/bcel/util/BCELifierTestCase.java
@@ -63,7 +63,7 @@ public class BCELifierTestCase {
             final BCELifier bcelifier = new BCELifier(java_class, fos);
             bcelifier.start();
         }
-        exec(workDir, "javac", "-cp", "classes", outfile.getName());
+        exec(workDir, "javac", "-cp", "classes", outfile.getName(), "-source", 
"1.8", "-target", "1.8");
         exec(workDir, "java", "-cp", "." + File.pathSeparator + "classes", 
outfile.getName().replace(".java", ""));
         final String output = exec(workDir, "javap", "-p", "-c", 
infile.getName());
         assertEquals(canonHashRef(initial), canonHashRef(output));

Reply via email to