Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-4179

Test failures with Java 9 when using javax.imageio.spi.ServiceRegistry

    XMLWordPrintableJSON

    Details

      Description

      When building with Java 9 there is at least one test failure due to using javax.imageio.spi.ServiceRegistry as a general-purpose service loader, which is not possible anymore with Java 9:

      [ERROR] Tests run: 3, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.13 s <<< FAILURE! - in org.apache.jackrabbit.commons.JcrUtilsTest
      [ERROR] testGetRepository(org.apache.jackrabbit.commons.JcrUtilsTest)  Time elapsed: 0.128 s  <<< ERROR!
      java.lang.IllegalArgumentException: javax.jcr.RepositoryFactory is not an ImageIO SPI class
      	at org.apache.jackrabbit.commons.JcrUtilsTest.testGetRepository(JcrUtilsTest.java:50)

      We should move away from this ServiceRegistry and use java.util.ServiceLoader instead.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rombert Robert Munteanu
                Reporter:
                rombert Robert Munteanu
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: