JDK-6177059 : REGRESSION: tools/apt/Basics/apt.sh fails
  • Type: Bug
  • Component: tools
  • Sub-Component: apt
  • Affected Version: 5.0u1
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: solaris
  • CPU: generic
  • Submitted: 2004-10-11
  • Updated: 2012-10-09
  • Resolved: 2004-11-06
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other JDK 6
5.0u2Fixed 6 b12Fixed
Related Reports
Relates :  
Description
JDK        		: 1.5.0_01 b03
    Platform[s]         : Fails On:  Solaris 8 x86 and Solaris 10 sparc
    Failing Test [s]    : REGRESSION: tools/apt/Basics/apt.sh


    Test source location:
    =====================
/net/koori.sfbay/p/jdk04/jdk/1.5.0_01/ea/b03/ws/j2se/test/tools/apt/Basics/apt.sh


    jtr file location:
    ==================
equuleus:/tmp/tools/apt/Basics/apt.jtr

    How to reproduce:
    ====================
    - Set JAVA_HOME to /net/koori.sfbay/p/jdk04/jdk/1.5.0_01/ea/b03/binaries/solaris-i586
    - cd /net/koori.sfbay/p/jdk04/jdk/1.5.0_01/ea/b03/ws/j2se/test/tools/apt/Basics
    - /net/koori.sfbay/onestop/jct-tools/2.1.6/archive/fcs/binaries/solaris/bin/jtreg -r:/tmp -w:/tmp ./apt.sh


    Test output:
    =============
----------System.out:(22/1564)----------
Making services directory and copying services information.
added manifest
adding: NullAPF$NullAP.class(in = 404) (out= 404)(stored 0%)
adding: NullAPF.class(in = 1320) (out= 1320)(stored 0%)
ignoring entry META-INF/
adding: META-INF/services/(in = 0) (out= 0)(stored 0%)
adding: META-INF/services/com.sun.mirror.apt.AnnotationProcessorFactory(in = 8) (out= 8)(stored 0%)
Testing annotations on source file /net/koori.sfbay/p/jdk04/jdk/1.5.0_01/ea/b03/ws/j2se/test/tools/apt/Basics/ClassAnnotations.java
Testing annotations on class file ClassAnnotations
Testing annotations on source file /net/koori.sfbay/p/jdk04/jdk/1.5.0_01/ea/b03/ws/j2se/test/tools/apt/Basics/MethodAnnotations.java
Testing annotations on class file MethodAnnotations
Testing annotations on source file /net/koori.sfbay/p/jdk04/jdk/1.5.0_01/ea/b03/ws/j2se/test/tools/apt/Basics/NestedClassAnnotations.java
Testing annotations on class file NestedClassAnnotations
Testing annotations on source file /net/koori.sfbay/p/jdk04/jdk/1.5.0_01/ea/b03/ws/j2se/test/tools/apt/Basics/StaticFieldAnnotations.java
Testing annotations on class file StaticFieldAnnotations
Testing annotations on source file /net/koori.sfbay/p/jdk04/jdk/1.5.0_01/ea/b03/ws/j2se/test/tools/apt/Basics/StaticMethodAnnotations.java
Testing annotations on class file StaticMethodAnnotations
Testing annotations on source file /net/koori.sfbay/p/jdk04/jdk/1.5.0_01/ea/b03/ws/j2se/test/tools/apt/Basics/ParameterAnnotations.java
Testing annotations on class file ParameterAnnotations
Testing for freshness.
Indirect.skim
[@Fresh]
----------System.err:(6/459)----------
Note: /net/koori.sfbay/p/jdk04/jdk/1.5.0_01/ea/b03/ws/j2se/test/tools/apt/Basics/NullAPF.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
/net/koori.sfbay/p/jdk04/jdk/1.5.0_01/ea/b03/ws/j2se/test/tools/apt/Basics/Indirect.java:5: error while writing Indirect: /net/koori.sfbay/p/jdk04/jdk/1.5.0_01/ea/b03/ws/j2se/test/tools/apt/Basics/Indirect.class (Read-only file system)
public class Indirect {
       ^
1 error
result: Failed. Execution failed: exit code 1


test result: Failed. Execution failed: exit code 1



    Specific Machine Info:
    =====================
    Host Name:  equuleus
    
                      Solaris 8 2/02 s28x_u7wos_08a INTEL
           Copyright 2002 Sun Microsystems, Inc.  All Rights Reserved.
                           Assembled 18 December 2001
###@###.### 10/11/04 18:17 GMT

Comments
SUGGESTED FIX test/tools/apt/Basics>sccs sccsdiff -r1.7 -r1.8 apt.sh ------- apt.sh ------- 2c2 < # @bug 4908512 5024825 4957203 4993280 4996963 6174696 --- > # @bug 4908512 5024825 4957203 4993280 4996963 6174696 6177059 104a105 > printf "%s\n" "-nocompile" >> options2 test/tools/apt/Basics>sccs sccsdiff -r1.1 -r1.2 NullAPF.java | more ------- NullAPF.java ------- 30c30 < return java.util.Collections.EMPTY_SET; --- > return java.util.Collections.emptySet(); ###@###.### 10/25/04 20:28 GMT
25-10-2004

EVALUATION Suspect failure is due to running test on a read-only file system. Will audit shell test for writes to the current directory. ###@###.### 10/16/04 00:44 GMT
16-10-2004