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

ScriptEngineTest.java fails with compilation error when running under jtreg

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • None
    • 8
    • core-libs
    • None
    • b89
    • generic
    • generic

    Description

      cd $jdk/nashorn
      jtreg -jdk:<jdk8-home> ./test

      ----------messages:(3/329)----------
      command: build jdk.nashorn.api.scripting.Window jdk.nashorn.api.scripting.WindowEventHandler jdk.nashorn.api.scripting.ScriptEngineTest
      reason: User specified action: run build jdk.nashorn.api.scripting.Window jdk.nashorn.api.scripting.WindowEventHandler jdk.nashorn.api.scripting.ScriptEngineTest
      elapsed time (seconds): 2.026
      result: Failed. Compilation failed: Compilation failed

      #section:compile
      ----------messages:(3/374)----------
      command: compile /home/sundar/src/nashorn-jdk8/nashorn/test/src/jdk/nashorn/api/scripting/Window.java /home/sundar/src/nashorn-jdk8/nashorn/test/src/jdk/nashorn/api/scripting/WindowEventHandler.java /home/sundar/src/nashorn-jdk8/nashorn/test/src/jdk/nashorn/api/scripting/ScriptEngineTest.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 2.025
      ----------System.out:(0/0)----------
      ----------System.err:(11/734)----------
      /home/sundar/src/nashorn-jdk8/nashorn/test/src/jdk/nashorn/api/scripting/ScriptEngineTest.java:927: error: cannot find symbol
              final VariableArityTestInterface itf = ((Invocable)e).getInterface(VariableArityTestInterface.class);
                    ^
        symbol: class VariableArityTestInterface
        location: class ScriptEngineTest
      /home/sundar/src/nashorn-jdk8/nashorn/test/src/jdk/nashorn/api/scripting/ScriptEngineTest.java:927: error: cannot find symbol
              final VariableArityTestInterface itf = ((Invocable)e).getInterface(VariableArityTestInterface.class);
                                                                                 ^
        symbol: class VariableArityTestInterface
        location: class ScriptEngineTest
      2 errors
      result: Failed. Compilation failed: Compilation failed


      test result: Failed. Compilation failed: Compilation failed

      Attachments

        Activity

          People

            sundar Sundararajan Athijegannathan
            sundar Sundararajan Athijegannathan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: