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

@modules java.compact2 is not working

XMLWordPrintable

    • b04

      $ cat TestCompact2.java TestXML.java
      /*
       * @test
       * @modules java.compact2
       */
      public class TestCompact2 {
          public static void main(String[] argv) {}
      }
      /*
       * @test
       * @modules java.xml
       */
      public class TestXML {
          public static void main(String[] argv) {}
      }
      $ jtreg TestCompact2.java TestXML.java
      Passed: TestCompact2.java
      Passed: TestXML.java
      Test results: passed: 2
      $ jtreg -javaoptions:"-limitmods java.xml" TestCompact2.java TestXML.java
      Passed: TestXML.java
      Test results: passed: 1
      $ jtreg -javaoptions:"-limitmods java.compact2" TestCompact2.java TestXML.java
      Passed: TestXML.java
      Test results: passed: 1
      $ jtreg -javaoptions:"-limitmods java.compact2" TestCompact2.java
      Test results: no tests selected

            jjg Jonathan Gibbons
            shurailine Aleksandre Iline
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: