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

RESTEasy doesn't compile on JDK 10

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 3.5.1.Final, 4.0.0.Beta3
    • 4.0.0.Beta2
    • jaxrs
    • None

    Description

      RESTEasy doesn't compile on JDK 10

      The reason is slight change in JDK API - https://docs.oracle.com/javase/9/docs/api/javax/xml/namespace/NamespaceContext.html#getPrefixes-java.lang.String-:

      Java 9:            Iterator getPrefixes​(String namespaceURI)
      Java 10 and 11:    Iterator<String> getPrefixes(String namespaceURI);
      
      [ERROR] COMPILATION ERROR :
      [INFO] -------------------------------------------------------------
      [ERROR] /Users/rsvoboda/git/Resteasy/providers/jettison/src/main/java/org/jboss/resteasy/plugins/providers/jaxb/json/MappedConvention.java:[13,8] getPrefixes(java.lang.String) in org.codehaus.jettison.mapped.MappedNamespaceConvention cannot implement getPrefixes(java.lang.String) in javax.xml.namespace.NamespaceContext
        return type java.util.Iterator<java.lang.Object> is not compatible with java.util.Iterator<java.lang.String>
      [INFO] 1 error
      

      Filed upstream issue https://github.com/jettison-json/jettison/issues/21

      Attachments

        Issue Links

          Activity

            People

              rhn-support-asoldano Alessio Soldano
              rsvoboda@redhat.com Rostislav Svoboda
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: