Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-6978085

JCK compiler sigtest fails if method throw list has generic exception type

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • st2.2
    • st2.2
    • tools
    • b10
    • b13
    • generic
    • generic
    • Verified

      The JCK Compiler signature test fails when a method has the throw list with a generic exception type. Example:

      ========
      public class clss44702<A extends Exception> {
          void test(PrintStream out) throws A {
              throw a;
          }
      }
      ========

      Steps to reproduce:

      1. Compile the attached JCK Compiler signature test extension: MUtil.java, MTest.java, MSetup.java. Note: these files need > Sigtest 2.2 b12.

      2. Compile a sample source file.
      javac -d classes clss44702.java

      3. Generate the nonclosed signature data file:

      <ag153348@spb-piker> java -cp ../sigtestdev.jar:classes javasoft.sqe.jck.tdk.compilersigtest.MSetup -filename data.sig -classpath classes:/set/java/re/jdk/6/latest/binaries/linux-i586/jre/lib/rt.jar -nonclosedfile -package javasoft.sqe.tests

      4. Run the signature test an got the error.

      <ag153348@spb-piker> java -cp classes:../sigtestdev.jar javasoft.sqe.jck.tdk.compilersigtest.MTest -filename data.sig -classpath classes -package javasoft.sqe.tests
      SignatureTest report
      Base version:
      Tested version:
      Check mode: src [throws normalized]
      Constant checking: on


      Missing Methods
      ---------------

      javasoft.sqe.tests.lang.clss447.clss44702.clss44702: method public void javasoft.sqe.tests.lang.clss447.clss44702.clss44702.test(java.io.PrintStream) throws {javasoft.sqe.tests.lang.clss447.clss44702.clss44702%0}


      STATUS:Failed.1 errors

      The following JCK tests fail due to this issue:

         lang/CLSS/clss447/clss44702/clss44702.html[runSignatureTest]
         lang/CLSS/clss447/clss44701/clss44701.html[runSignatureTest]
         lang/CLSS/clss460/clss46001/clss46001.html[runSignatureTest]
         lang/EXCP/excp010/excp01005/excp01005.html[runSignatureTest]
         lang/EXCP/excp012/excp01203/excp01203.html[runSignatureTest]
         lang/EXCP/excp013/excp01311/excp01311.html[runSignatureTest]
         lang/EXCP/excp014/excp01402/excp01402.html[runSignatureTest]
         lang/EXPR/expr702/expr70202/expr70202.html[runSignatureTest]

            ersh Mikhail Ershov (Inactive)
            agavrilosunw Alexey Gavrilov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: