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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor 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

      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.

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

              Created:
              Updated: