Uploaded image for project: 'JBoss BPMS Platform'
  1. JBoss BPMS Platform
  2. RHBPMS-4251

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

XMLWordPrintable

    • RC1
    • CR2
    • 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
              Tibor Zimányi Tibor Zimányi
              Tibor Zimányi Tibor Zimányi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: