Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-1480

Correct package splitting to prepare JDK9 Jigsaw support

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.1.0.CR1, 3.0.20.Final
    • 3.0.19.Final
    • None

      When compiling a project with RESTEasy artefacts in the module path (in which all jars become automatic jigsaw modules) with JDK9 (build 133 and previous build), compilation fails with the following error:

      Unable to find source-code formatter for language: shell. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      [INFO] -------------------------------------------------------------
      [ERROR] COMPILATION ERROR : 
      [INFO] -------------------------------------------------------------
      [ERROR] module  reads package org.jboss.resteasy.plugins.server.servlet from both async.http.servlet and resteasy.jaxrs
      [ERROR] module async.http.servlet reads package org.jboss.resteasy.plugins.server.servlet from both async.http.servlet and resteasy.jaxrs
      [ERROR] module resteasy.cdi reads package org.jboss.resteasy.plugins.server.servlet from both async.http.servlet and resteasy.jaxrs
      [ERROR] module resteasy.jaxrs reads package org.jboss.resteasy.plugins.server.servlet from both async.http.servlet and resteasy.jaxrs
      

      Error disappears if RESTEasy is rebuild with moving all classes in async-http-servlet-3.0 module from org.jboss.resteasy.plugins.server.servlet to org.jboss.resteasy.plugins.server.servlet.servlet3 package

              rhn-support-asoldano Alessio Soldano
              asabotdu@redhat.com Antoine Sabot-Durand (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: