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

support two executable classes in a single file

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Rejected
    • Icon: P3 P3
    • None
    • None
    • tools
    • None

      It's quite popular scenario for test when two different classes are executed in serial.
      Like:

      @run othervm -Xloggc:out.log Test
      @run CheckLog out.log

      currently jtreg doesn't allow to define two classes in a single java source:
      jtreg runs only public classes and doesn't recognize inner classes.

      It would be great if one was able to write like:
      /*
       * @test
       * @run othervm -Xloggc:out.log Test.Run
       * @run Test.CheckLog out.log
       */
      public class Test {
          public static class Run {...}
          public static class CheckLog {...}
      }


            Unassigned Unassigned
            dfazunen Dmitry Fazunenko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: