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

TEST_BUG: Duplicate class declaration in 12 regression tests

    Details

      Description



      Name: mmR10223 Date: 04/23/2003


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.4.2-b20
      Testbase : RegTest-test
      Platform[s] : RedHat Linux 8.0 (GNOME)
      switch/Mode :
      Falling test[s]:
             
      RegTest-test java/io/Serializable/BadSerialPersistentField.java
      RegTest-test java/io/Serializable/BadSerialVersionUID.java
      RegTest-test java/io/Serializable/GetSuidClinitError.java


      These 3 tests contain declaraion of classes with identical names (class A, class B,
      class C). When compiled, the .class files are placed in the same directory, so these
      class files from one of these tests can overwrite them from the other test.

      As result, this can cause an error because the test could be run with a wrong
      B.class (A.class, C.class) if regression testbase is running 2 or more times.


      Test source location:
      =====================
      /java/re/jdk/1.4.2/promoted/latest/ws/j2se/test/java/io/Serializable/BadSerialPersistentField.java
      /java/re/jdk/1.4.2/promoted/latest/ws/j2se/test/java/io/Serializable/BadSerialVersionUID.java
      /java/re/jdk/1.4.2/promoted/latest/ws/j2se/test/java/io/Serializable/GetSuidClinitError.java

      jtr file location:
      ==================
      /net/jtgb4u4c.sfbay/export/sail15/results/mantis/b20/regtest/linux/redhat8.0_gnome-client_linux-20/workDir/test/java/io/Serializable/BadSerialPersistentField.jtr
      /net/jtgb4u4c.sfbay/export/sail15/results/mantis/b20/regtest/linux/redhat8.0_gnome-client_linux-20/workDir/test/java/io/Serializable/BadSerialVersionUID.jtr
      /net/jtgb4u4c.sfbay/export/sail15/results/mantis/b20/regtest/linux/redhat8.0_gnome-client_linux-20/workDir/test/java/io/Serializable/GetSuidClinitError.jtr

      Specific machine info:
      ======================
      Hostname: linux-20
      OS: RedHat Linux 8.0 (GNOME)

      ======================================================================

      There are other Serialization tests that have the same problem:

      When I run regression tests using Javatest on a 1.5 workspace
      for the first time, all java/io/Serializable tests pass.

      However, if I then run the tests again (without deleting the
      files created by the previous test run) I get these test failures:

      * java/io/Serializable/GetSuidClinitError.java
      * java/io/Serializable/BadSerialPersistentField.java
      * java/io/Serializable/FinalFields.java
      * java/io/Serializable/PartialClassDesc.java
      * java/io/Serializable/WriteObjectMemory.java
      # java/io/Serializable/ExplicitCNFException.java
      # java/io/Serializable/DefaultDataEnd.java
      # java/io/Serializable/SurvivePrematureClose.java
      * java/io/Serializable/BadSerialVersionUID.java
      * java/io/Serializable/LookupInterfaceDesc.java
      # java/io/Serializable/OptionalDataEnd.java
      * java/io/Serializable/DefaultReadObjectCNFException.java

      Besides the duplicate classes A, B, C mentioned above, Foo is also
      duplicated.

      It's important to fix these because engineers will spend a lot of time
      chasing down non-bugs in the code they changed until they learn that
      "Serializable failures are ignorable."

      ###@###.### 2003-04-29

        Attachments

          Activity

            People

            • Assignee:
              mwarressunw Michael Warres (Inactive)
              Reporter:
              mmvsunw Mmv Mmv (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: