Uploaded image for project: 'Clover'
  1. Clover
  2. CLOV-1096

Instrumentation failure for annotation inside catch clause

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • High
    • 3.1.6
    • 3.1.5
    • Instrumentation
    • None

    Description

      Clover instrumenter does not handle the @SuppressWarnings annotation placed before exception type in the catch clause. See following examples:

      protected void testWithAnnotation() throws IOException {
        try {
        //FAILS
        } catch (@SuppressWarnings("unused") RuntimeException ioe) { }
      }
      
      
      protected void testWithoutAnnotation() throws IOException {
        try {
        // OK
        } catch (RuntimeException ioe) { }
      }
      

      Attachments

        Activity

          People

            mparfianowicz Marek Parfianowicz
            mparfianowicz Marek Parfianowicz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 4h
                4h
                Remaining:
                Remaining Estimate - 4h
                4h
                Logged:
                Time Spent - Not Specified
                Not Specified