Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8265611

@compile/ref comparison fails when -Djavatest.security.noSecurityManager=true is set

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not an Issue
    • P4
    • 17
    • 17
    • tools
    • None

    Description

      test/langtools/tools/javac/processing/options/XprintRepeatingAnnotations.java

      When -Djavatest.security.noSecurityManager=true is set on the jtreg command line, the test above fails with:

      stderr:

           ---- WARNING -----

      JavaTest did not install its own Security Manager
      because the property javatest.security.noSecurityManager was set.
      This is not a fatal error, but it may affect the
      execution of sameJVM tests

      stdout:
      package p;

      public class P {

        public static class P1 extends p.P {

          public P1();
        }

        public static class P2 extends p.P {

          public P2();
        }

        public P();
      }
      /**
       * Printing of modules
       */
      @java.lang.Deprecated
      module printing {
        requires java.base;
        requires static transitive java.compiler;
        exports p to m.m1, m.m2;
        opens p to m.m1, m.m2;
        uses p.P;
        provides p.P with p.P.P1, p.P.P2;
      }

      TEST RESULT: Failed. Output does not match reference file: module-info.out, line 1

      Attachments

        Issue Links

          Activity

            People

              jfranck Joel Borggrén-Franck (Inactive)
              weijun Weijun Wang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: