< prev index next >

test/langtools/tools/javac/records/RecordReading.java

Print this page
@@ -1,7 +1,7 @@
  /*
-  * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
+  * Copyright (c) 2020, 2021, 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.

@@ -23,21 +23,22 @@
  
  /*
   * @test
   * @summary test the records can be read by javac properly
   * @library /tools/lib
+  * @bug 8273018
   * @modules jdk.compiler/com.sun.tools.javac.api
   *          jdk.compiler/com.sun.tools.javac.main
   * @build toolbox.ToolBox toolbox.JavacTask
   * @run main RecordReading
   */
  
- 
  import java.io.IOException;
  import java.nio.file.Files;
  import java.nio.file.Path;
  import java.nio.file.Paths;
+ import java.util.List;
  import java.util.Objects;
  import toolbox.TestRunner;
  import toolbox.ToolBox;
  import toolbox.JavacTask;
  import toolbox.Task;

@@ -123,7 +124,6 @@
                  """;
          if (!Objects.equals(expected, output)) {
              throw new AssertionError("Unexpected output: " + output);
          }
      }
- 
  }
< prev index next >