8030642: Add golden files to javac/limits
Summary: Add golden files to check output of negative compilation tests in javac/limits
Reviewed-by: jjg, emc
Contributed-by: paul.govereau@oracle.com
--- a/langtools/test/tools/javac/limits/ArrayDims2.java Tue Dec 17 10:28:36 2013 -0800
+++ b/langtools/test/tools/javac/limits/ArrayDims2.java Tue Dec 17 18:15:48 2013 -0500
@@ -27,7 +27,7 @@
* @summary Compiler silently generates bytecode that exceeds VM limits
* @author gafter
*
- * @compile/fail ArrayDims2.java
+ * @compile/fail/ref=ArrayDims2.out -XDrawDiagnostics ArrayDims2.java
*/
class ArrayDims2 {
--- a/langtools/test/tools/javac/limits/ArrayDims4.java Tue Dec 17 10:28:36 2013 -0800
+++ b/langtools/test/tools/javac/limits/ArrayDims4.java Tue Dec 17 18:15:48 2013 -0500
@@ -27,7 +27,7 @@
* @summary Compiler silently generates bytecode that exceeds VM limits
* @author gafter
*
- * @compile/fail ArrayDims4.java
+ * @compile/fail/ref=ArrayDims4.out -XDrawDiagnostics ArrayDims4.java
*/
class ArrayDims4 {
--- a/langtools/test/tools/javac/limits/ArrayDims5.java Tue Dec 17 10:28:36 2013 -0800
+++ b/langtools/test/tools/javac/limits/ArrayDims5.java Tue Dec 17 18:15:48 2013 -0500
@@ -27,7 +27,7 @@
* @summary javac fails to diagnose too many array dimensions
* @author gafter
*
- * @compile/fail ArrayDims5.java
+ * @compile/fail/ref=ArrayDims5.out -XDrawDiagnostics ArrayDims5.java
*/
public abstract class ArrayDims5 {
--- a/langtools/test/tools/javac/limits/CodeSize.java Tue Dec 17 10:28:36 2013 -0800
+++ b/langtools/test/tools/javac/limits/CodeSize.java Tue Dec 17 18:15:48 2013 -0500
@@ -27,7 +27,7 @@
* @summary Compiler silently generates bytecode that exceeds VM limits
* @author gafter
*
- * @compile/fail CodeSize.java
+ * @compile/fail/ref=CodeSize.out -XDrawDiagnostics CodeSize.java
*/
class CodeSize {
--- a/langtools/test/tools/javac/limits/LongName.java Tue Dec 17 10:28:36 2013 -0800
+++ b/langtools/test/tools/javac/limits/LongName.java Tue Dec 17 18:15:48 2013 -0500
@@ -27,7 +27,7 @@
* @summary Compiler silently generates bytecode that exceeds VM limits
* @author gafter
*
- * @compile/fail LongName.java
+ * @compile/fail/ref=LongName.out -XDrawDiagnostics LongName.java
*/
class LongName {
--- a/langtools/test/tools/javac/limits/PoolSize1.java Tue Dec 17 10:28:36 2013 -0800
+++ b/langtools/test/tools/javac/limits/PoolSize1.java Tue Dec 17 18:15:48 2013 -0500
@@ -27,7 +27,7 @@
* @summary Compiler silently generates bytecode that exceeds VM limits
* @author gafter
*
- * @compile/fail PoolSize1.java
+ * @compile/fail/ref=PoolSize1.out -XDrawDiagnostics PoolSize1.java
*/
import java.io.PrintStream;
--- a/langtools/test/tools/javac/limits/PoolSize2.java Tue Dec 17 10:28:36 2013 -0800
+++ b/langtools/test/tools/javac/limits/PoolSize2.java Tue Dec 17 18:15:48 2013 -0500
@@ -27,7 +27,7 @@
* @summary Compiler silently generates bytecode that exceeds VM limits
* @author gafter
*
- * @compile/fail PoolSize2.java
+ * @compile/fail/ref=PoolSize2.out -XDrawDiagnostics PoolSize2.java
*/
import java.io.PrintStream;
--- a/langtools/test/tools/javac/limits/StringLength.java Tue Dec 17 10:28:36 2013 -0800
+++ b/langtools/test/tools/javac/limits/StringLength.java Tue Dec 17 18:15:48 2013 -0500
@@ -27,7 +27,7 @@
* @summary Compiler silently generates bytecode that exceeds VM limits
* @author gafter
*
- * @compile/fail StringLength.java
+ * @compile/fail/ref=StringLength.out -XDrawDiagnostics StringLength.java
*/
class StringLength {