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

[TEST] javax/script/GetInterfaceTest.java fails since 7u45 b04 when run with jtreg -agentvm option

    Details

    • Subcomponent:
    • Introduced In Build:
      b04
    • Introduced In Version:
    • Resolved In Build:
      b01
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        Testsuite name: Regression
        Test name: javax/script/GetInterfaceTest.java
        JDK tested: 7u45 b04
        OS tested: All

        Test fails since 7u45 b04 and passes against 7u45 b03.

        I suppose it is not a regression, but a test bug, because failure is reproduced only when run with JTREG 4.1 b06 and -agentvm option.

        LOG:


        #section:main
        ----------messages:(3/129)----------
        command: main GetInterfaceTest
        reason: Assumed action based on file name: run main GetInterfaceTest
        elapsed time (seconds): 0.1
        ----------System.out:(1/21)----------
        this is run function
        ----------System.err:(14/818)----------
        java.lang.SecurityException: attempt to implement non-public interface
        at com.sun.script.util.InterfaceImplementor.getInterface(InterfaceImplementor.java:92)
        at com.sun.script.javascript.RhinoScriptEngine.getInterface(RhinoScriptEngine.java:310)
        at GetInterfaceTest.main(GetInterfaceTest.java:65)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:728)
        at java.lang.Thread.run(Thread.java:744)

        JavaTest Message: Test threw exception: java.lang.SecurityException
        JavaTest Message: shutting down test

        result: Failed. Execution failed: `main' threw exception: java.lang.SecurityException: attempt to implement non-public interface


        test result: Failed. Execution failed: `main' threw exception: java.lang.SecurityException: attempt to implement non-public interface

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  coffeys Sean Coffey
                  Reporter:
                  kshefov Konstantin Shefov
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: