langtools/test/tools/javac/diags/examples/Expected2.java
changeset 25445 603f0c93d5c9
parent 7335 8b390fd27190
--- a/langtools/test/tools/javac/diags/examples/Expected2.java	Wed Jul 09 10:49:32 2014 -0400
+++ b/langtools/test/tools/javac/diags/examples/Expected2.java	Thu Jul 10 13:57:27 2014 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 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
@@ -22,6 +22,12 @@
  */
 
 // key: compiler.err.expected2
-// options: -source 1.4 -Xlint:-options
+// options: -Xlint:-options
+
+class Expected2 {
 
-int Expected2;
+    void m(){
+        new x1;
+
+    }
+}