test/tools/javap/output/Tester.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
--- 1,7 ----
/*
! * Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 269,279 ****
/**
* Compile the Java source code.
*/
protected void compileTestFile() {
String path = javaFile.getPath();
! String params[] = { "-source", "1.8", "-g", path };
int rc = com.sun.tools.javac.Main.compile(params);
if (rc != 0)
throw new Error("compilation failed. rc=" + rc);
classFile = new File(path.substring(0, path.length() - 5) + ".class");
}
--- 269,279 ----
/**
* Compile the Java source code.
*/
protected void compileTestFile() {
String path = javaFile.getPath();
! String params[] = {"-g", path };
int rc = com.sun.tools.javac.Main.compile(params);
if (rc != 0)
throw new Error("compilation failed. rc=" + rc);
classFile = new File(path.substring(0, path.length() - 5) + ".class");
}