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

TEST_BUG: tools/javac/Paths/6638501/JarFromManifestFailure.java fails

    Details

    • Subcomponent:
    • Resolved In Build:
      b01
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Backports

        Description

        Test fails when trying to write to read-only file system.

            Test output:
            ============
        ----------System.err:(75/7838)----------
        compile...
        [parsing started /net/jre.sfbay/p/v16/jdk/6_10/beta/b24/ws/j2se/test/tools/javac/Paths/6638501/HelloLib/test/HelloImpl.java]
        [parsing completed 36ms]
        [parsing started /net/jre.sfbay/p/v16/jdk/6_10/beta/b24/ws/j2se/test/tools/javac/Paths/6638501/WsCompileExample.java]
        [parsing completed 12ms]
        [search path for source files: /net/sqenfs-1.sfbay/export1/tools/gtee/suites/regression/jct-tools/2.1.6/archive/fcs/binaries/javatest.jar,/net/sqenfs-2.sfbay.sun.com/export2/results/regression/1.6.0_10/b24/regression-solaris10-amd642008-05-15-18-01-04/workDir/classes/tools/javac/Paths/6638501,/net/jre.sfbay/p/v16/jdk/6_10/beta/b24/ws/j2se/test/tools/javac/Paths/6638501,/net/koori.sfbay/onestop/jdk/6_10/latest/binaries/solaris-amd64/classes,/net/koori.sfbay/onestop/jdk/6_10/latest/binaries/solaris-amd64/lib/classes,/net/koori.sfbay/onestop/jdk/6_10/latest/binaries/solaris-amd64/lib/classes.jar,/net/koori.sfbay/onestop/jdk/6_10/latest/binaries/solaris-amd64/lib/rt.jar,/net/koori.sfbay/onestop/jdk/6_10/latest/binaries/solaris-amd64/lib/i18n.jar,/net/koori.sfbay/onestop/jdk/6_10/latest/binaries/solaris-amd64/lib/classes.zip,/net/koori.sfbay/onestop/jdk/6_10/latest/binaries/solaris-amd64/lib/tools.jar,/net/sqenfs-1.sfbay/export1/tools/gtee/suites/regression/Jemmy/jemmy.jar]
        [search path for class files: /net/jre.sfbay/p/v16/jdk/6_10/beta/b24/binaries/solaris-amd64/jre/lib/resources.jar,/net/jre.sfbay/p/v16/jdk/6_10/beta/b24/binaries/solaris-amd64/jre/lib/rt.jar,/net/jre.sfbay/p/v16/jdk/6_10/beta/b24/binaries/solaris-amd64/jre/lib/sunrsasign.jar,/net/jre.sfbay/p/v16/jdk/6_10/beta/b24/binaries/solaris-amd64/jre/lib/jsse.jar,/net/jre.sfbay/p/v16/jdk/6_10/beta/b24/binaries/solaris-amd64/jre/lib/jce.jar,/net/jre.sfbay/p/v16/jdk/6_10/beta/b24/binaries/solaris-amd64/jre/lib/charsets.jar,/net/jre.sfbay/p/v16/jdk/6_10/beta/b24/binaries/solaris-amd64/jre/classes,/net/jre.sfbay/p/v16/jdk/6_10/beta/b24/binaries/solaris-amd64/jre/lib/ext/sunjce_provider.jar,/net/jre.sfbay/p/v16/jdk/6_10/beta/b24/binaries/solaris-amd64/jre/lib/ext/sunpkcs11.jar,/net/jre.sfbay/p/v16/jdk/6_10/beta/b24/binaries/solaris-amd64/jre/lib/ext/dnsns.jar,/net/jre.sfbay/p/v16/jdk/6_10/beta/b24/binaries/solaris-amd64/jre/lib/ext/localedata.jar,/usr/jdk/packages/lib/ext/jhall.jar,/net/sqenfs-1.sfbay/export1/tools/gtee/suites/regression/jct-tools/2.1.6/archive/fcs/binaries/javatest.jar,/net/sqenfs-2.sfbay.sun.com/export2/results/regression/1.6.0_10/b24/regression-solaris10-amd642008-05-15-18-01-04/workDir/classes/tools/javac/Paths/6638501,/net/jre.sfbay/p/v16/jdk/6_10/beta/b24/ws/j2se/test/tools/javac/Paths/6638501,/net/koori.sfbay/onestop/jdk/6_10/latest/binaries/solaris-amd64/classes,/net/koori.sfbay/onestop/jdk/6_10/latest/binaries/solaris-amd64/lib/classes,/net/koori.sfbay/onestop/jdk/6_10/latest/binaries/solaris-amd64/lib/classes.jar,/net/koori.sfbay/onestop/jdk/6_10/latest/binaries/solaris-amd64/lib/rt.jar,/net/koori.sfbay/onestop/jdk/6_10/latest/binaries/solaris-amd64/lib/i18n.jar,/net/koori.sfbay/onestop/jdk/6_10/latest/binaries/solaris-amd64/lib/classes.zip,/net/koori.sfbay/onestop/jdk/6_10/latest/binaries/solaris-amd64/lib/tools.jar,/net/sqenfs-1.sfbay/export1/tools/gtee/suites/regression/Jemmy/jemmy.jar]
        [loading java/lang/Object.class(java/lang:Object.class)]
        [loading java/util/List.class(java/util:List.class)]
        [loading java/util/ArrayList.class(java/util:ArrayList.class)]
        [loading java/io/File.class(java/io:File.class)]
        [loading java/io/OutputStream.class(java/io:OutputStream.class)]
        [loading java/io/PrintWriter.class(java/io:PrintWriter.class)]
        [loading java/lang/reflect/Method.class(java/lang/reflect:Method.class)]
        [loading java/lang/reflect/InvocationTargetException.class(java/lang/reflect:InvocationTargetException.class)]
        [loading java/lang/String.class(java/lang:String.class)]
        [loading java/lang/Class.class(java/lang:Class.class)]
        [checking test.HelloImpl]
        [loading java/lang/System.class(java/lang:System.class)]
        [loading java/io/PrintStream.class(java/io:PrintStream.class)]
        [loading java/io/FilterOutputStream.class(java/io:FilterOutputStream.class)]
        [wrote /net/sqenfs-2.sfbay.sun.com/export2/results/regression/1.6.0_10/b24/regression-solaris10-amd642008-05-15-18-01-04/workDir/classes/tools/javac/Paths/6638501/test/HelloImpl.class]
        [checking WsCompileExample]
        [loading java/lang/RuntimeException.class(java/lang:RuntimeException.class)]
        [loading java/lang/Throwable.class(java/lang:Throwable.class)]
        [loading java/lang/Exception.class(java/lang:Exception.class)]
        [loading java/net/URI.class(java/net:URI.class)]
        [loading java/util/AbstractList.class(java/util:AbstractList.class)]
        [loading java/util/AbstractCollection.class(java/util:AbstractCollection.class)][loading java/util/Collection.class(java/util:Collection.class)]
        [loading java/lang/Iterable.class(java/lang:Iterable.class)]
        [loading java/lang/Error.class(java/lang:Error.class)]
        [loading java/lang/StringBuilder.class(java/lang:StringBuilder.class)]
        [loading java/lang/AbstractStringBuilder.class(java/lang:AbstractStringBuilder.class)]
        [loading java/lang/CharSequence.class(java/lang:CharSequence.class)]
        [loading java/io/Serializable.class(java/io:Serializable.class)]
        [loading java/lang/Comparable.class(java/lang:Comparable.class)]
        [loading java/lang/StringBuffer.class(java/lang:StringBuffer.class)]
        [wrote /net/sqenfs-2.sfbay.sun.com/export2/results/regression/1.6.0_10/b24/regression-solaris10-amd642008-05-15-18-01-04/workDir/classes/tools/javac/Paths/6638501/WsCompileExample.class]
        [checking JavaCompilerHelper]
        [loading java/lang/ClassLoader.class(java/lang:ClassLoader.class)]
        [loading java/lang/Thread.class(java/lang:Thread.class)]
        [loading java/io/Writer.class(java/io:Writer.class)]
        [loading java/lang/reflect/AccessibleObject.class(java/lang/reflect:AccessibleObject.class)]
        [loading java/lang/Integer.class(java/lang:Integer.class)]
        [loading java/lang/Number.class(java/lang:Number.class)]
        [loading java/lang/IllegalAccessException.class(java/lang:IllegalAccessException.class)]
        [loading java/lang/IllegalArgumentException.class(java/lang:IllegalArgumentException.class)]
        [loading java/lang/NoSuchMethodException.class(java/lang:NoSuchMethodException.class)]
        [loading java/lang/ClassNotFoundException.class(java/lang:ClassNotFoundException.class)]
        [loading java/lang/SecurityException.class(java/lang:SecurityException.class)]
        [wrote /net/sqenfs-2.sfbay.sun.com/export2/results/regression/1.6.0_10/b24/regression-solaris10-amd642008-05-15-18-01-04/workDir/classes/tools/javac/Paths/6638501/JavaCompilerHelper.class]
        [total 1225ms]
        Note: /net/jre.sfbay/p/v16/jdk/6_10/beta/b24/ws/j2se/test/tools/javac/Paths/6638501/WsCompileExample.java uses unchecked or unsafe operations.
        Note: Recompile with -Xlint:unchecked for details.
        jar...
        jar...
        First compile!!!
        /net/jre.sfbay/p/v16/jdk/6_10/beta/b24/ws/j2se/test/tools/javac/Paths/6638501/test/SayHello.java:3: error while writing SayHello: /net/jre.sfbay/p/v16/jdk/6_10/beta/b24/ws/j2se/test/tools/javac/Paths/6638501/test/SayHello.class (Read-only file system)
        public class SayHello extends HelloImpl {
               ^
        1 error
        java.lang.AssertionError: Failure in first compile!
                at JarFromManifestFailure.main(JarFromManifestFailure.java:40)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:83)
                at java.lang.Thread.run(Thread.java:619)

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  kshefov Konstantin Shefov
                  Reporter:
                  jaleesunw James Lee (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: