Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-5315

JbpmPreprocessingUnit.readFile() method throws java.lang.IncompatibleClassChangeError on JDK 1.6

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • jBPM 6.4.0.Final
    • Designer
    • NEW
    • NEW
    • Hide

      Run JbpmPreprocessingUnitCommonTest.testReadFile from module jbpm-designer-backend using JDK 1.6

      Show
      Run JbpmPreprocessingUnitCommonTest.testReadFile from module jbpm-designer-backend using JDK 1.6

    Description

      JbpmPreprocessingUnit.readFile() closes Scanner instance by using Apache commons method IOUtils.closeQuietly(). This method takes objects that implement Closable interface. In JDK 1.6 Scanner didn't implement this interface, so calling readFile causes exception java.lang.IncompatibleClassChangeError: Class java.util.Scanner does not implement the requested interface java.io.Closeable.

      I will make a PR for this.

      Attachments

        Issue Links

          Activity

            People

              rhn-support-tsurdilo Tihomir Surdilovic (Inactive)
              tzimanyi@redhat.com Tibor Zimányi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: