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.
- is related to
-
RHBPMS-4251 JbpmPreprocessingUnit.readFile() method throws java.lang.IncompatibleClassChangeError on JDK 1.6
- Verified