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

TestIOException.java fails if run by root

XMLWordPrintable

    • b03
    • generic
    • generic

        Test test/langtools/jdk/javadoc/doclet/testIOException/TestIOException.java run fails with root user privileged.

        test log snippet 1:
        java.lang.reflect.InvocationTargetException
                at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:118)
                at java.base/java.lang.reflect.Method.invoke(Method.java:580)
                at javadoc.tester.JavadocTester.runTest(JavadocTester.java:451)
                at javadoc.tester.JavadocTester.runTests(JavadocTester.java:309)
                at javadoc.tester.JavadocTester.runTests(JavadocTester.java:286)
                at TestIOException.main(TestIOException.java:53)
                at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
                at java.base/java.lang.reflect.Method.invoke(Method.java:580)
                at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
                at java.base/java.lang.Thread.run(Thread.java:1575)
        Caused by: java.lang.Error: out1: directory is writable
                at TestIOException.error(TestIOException.java:225)
                at TestIOException.testReadOnlyDirectory(TestIOException.java:73)
                at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
                ... 9 more

        test log snippet 2:
        java.lang.reflect.InvocationTargetException
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at JavadocTester.runTests(JavadocTester.java:291)
        at JavadocTester.runTests(JavadocTester.java:275)
        at TestIOException.main(TestIOException.java:41)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
        at java.base/java.lang.Thread.run(Thread.java:955)
        Caused by: java.lang.Error: index is writable
        at TestIOException.testReadOnlyFile(TestIOException.java:80)
        ... 13 more

              syan Sendao Yan
              syan Sendao Yan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: