Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7901110

very confusing message: `@library' must appear before first `@run'

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • jtreg4.2
    • None
    • tools
    • None
    • b03

      When one adds @ignore tag to a test description like:

      /*
       * @test
       * @ignore bug
       * @library lib
       * @run main/othervm Test2
       */
      public class Test2 {
          public static void main(String args[]) {
              System.out.println("Hello world");
          }
      }

      and then run this test as:

      jtreg -ignore:run Test2.java

      He or she will get an error:
      test result: Error. Parse Exception: `@library' must appear before first `@run'

      Which is very confusing... Because library goes before run.

      It would be better to report that
      `@library' must appear before first action tag (`@run', '@igonre',...)

            jjg Jonathan Gibbons
            dfazunen Dmitry Fazunenko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: