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

test/compiler/regalloc/C1ObjectSpillInLogicOp.java fails with java.lang.IllegalAccessException

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      When running the test through jtreg it complains about not being able to access a public static method:

      java.lang.IllegalAccessException: Class com.sun.javatest.regtest.MainWrapper$MainThread can not access a member of class C1ObjectSpillInLogicOp with modifiers "public static"

      The problem is that the class is not public.

      diff -r c302ab46defe test/compiler/regalloc/C1ObjectSpillInLogicOp.java
      --- a/test/compiler/regalloc/C1ObjectSpillInLogicOp.java Mon Nov 25 18:40:26 2013 -0800
      +++ b/test/compiler/regalloc/C1ObjectSpillInLogicOp.java Mon Nov 25 20:46:59 2013 -0800
      @@ -34,8 +34,9 @@
        */
       
       import java.util.concurrent.atomic.*;
      -class C1ObjectSpillInLogicOp {
      - static public void main(String[] args) {
      +
      +public class C1ObjectSpillInLogicOp {
      + public static void main(String[] args) {
           AtomicReferenceArray<Integer> x = new AtomicReferenceArray(128);
           Integer y = new Integer(0);
           for (int i = 0; i < 50000; i++) {

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              iveresov Igor Veresov
              Reporter:
              twisti Christian Thalinger
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: