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

closed/java/lang/management/ManagementFactory/PermissionCheck.java fails on win

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • 7
    • core-libs
    • generic
    • windows_xp

      Testsuite name: regression j2se
      test: closed/java/lang/management/ManagementFactory/PermissionCheck.java
      JDK/JRE tested: jdk 7 b107
      OS/architecture: windows-i586
      Reproducible: Always
      Reproducible on machine: kendo.russia
      Is it a platform specific regression: N
      Is it a Regression: N

      Test run log location:
      [C:/JQA/regression/7b107] tFactory/PermissionCheck.jtr <
      #Test Results (version 2)
      #Mon Sep 06 16:18:29 MSD 2010
      #checksum:4fda4e0b927d5fe5
      #-----testdescription-----
      $file=K:\\regression\\workspaces\\1.7.0\\1.7.0b107\\j2se\\test\\closed\\java\\la
      ng\\management\\ManagementFactory\\PermissionCheck.java
      $root=K:\\regression\\workspaces\\1.7.0\\1.7.0b107\\j2se\\test
      author=Mandy Chung
      keywords=bug5045343 closed-security othervm
      run=USER_SPECIFIED build PermissionCheck\r\nUSER_SPECIFIED main/othervm Permissi
      onCheck\r\n
      source=PermissionCheck.java
      title=Check if ManagementFactory.getPlatformMBeanServer() checks for MBeanServer
      Permission("createMBeanServer");

      #-----environment-----

      #-----testresult-----
      description=file:///K:/regression/workspaces/1.7.0/1.7.0b107/j2se/test/closed/ja
      va/lang/management/ManagementFactory/PermissionCheck.java
      end=Mon Sep 06 16:18:29 MSD 2010
      environment=regtest
      execStatus=Failed. Execution failed: `main' threw exception: java.lang.RuntimeEx
      ception: Test failed: No SecurityException thrown
      javatestOS=Windows XP 5.1 (x86)
      javatestVersion=3.2.2_03
      script=com.sun.javatest.regtest.RegressionScript
      sections=script_messages build compile build main
      start=Mon Sep 06 16:18:28 MSD 2010
      test=closed/java/lang/management/ManagementFactory/PermissionCheck.java
      work=C:\\JQA\\regression\\7b107\\cur\\work\\closed\\java\\lang\\management\\Mana
      gementFactory

      #section:script_messages
      ----------messages:(1/42)*----------
      JDK under test: C:\\jdk\\7b107\\jdk1.7.0

      #section:build
      ----------messages:(3/122)----------
      command: build PermissionCheck
      reason: User specified action: run build PermissionCheck
      elapsed time (seconds): 1.094
      result: Passed. Build successful

      #section:compile
      ----------messages:(3/230)*----------
      command: compile K:\\regression\\workspaces\\1.7.0\\1.7.0b107\\j2se\\test\\close
      d\\java\\lang\\management\\ManagementFactory\\PermissionCheck.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 1.078
      ----------System.out:(0/0)----------
      ----------System.err:(0/0)----------
      result: Passed. Compilation successful

      #section:build
      ----------messages:(3/101)----------
      command: build PermissionCheck
      reason: Named class compiled on demand
      elapsed time (seconds): 0.0
      result: Passed. All files up to date

      #section:main
      ----------messages:(3/128)----------
      command: main PermissionCheck
      reason: User specified action: run main/othervm PermissionCheck
      elapsed time (seconds): 0.375
      ----------System.out:(0/0)----------
      ----------System.err:(13/795)----------
      java.lang.RuntimeException: Test failed: No SecurityException thrown
              at PermissionCheck.main(PermissionCheck.java:32)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:613)
              at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:
      96)
              at java.lang.Thread.run(Thread.java:717)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Test failed:
       No SecurityException thrown
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Test failed: N
      o SecurityException thrown
      result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeExcep
      tion: Test failed: No SecurityException thrown


      test result: Failed. Execution failed: `main' threw exception: java.lang.Runtime
      Exception: Test failed: No SecurityException thrown


      Steps to reproduce:
      [C:/JQA/regression/7b107] /javac PermissionCheck.java <
      [C:/JQA/regression/7b107] /java PermissionCheck <
      Exception in thread "main" java.lang.RuntimeException: Test failed: No SecurityE
      xception thrown
              at PermissionCheck.main(PermissionCheck.java:32)

            Unassigned Unassigned
            ikobzaresunw Ivan Kobzarev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: