Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-6008

Analysis of CXF dependency on JDK-Internal APIs

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • None
    • Invalid
    • Core
    • None
    • Unknown

    Description

      >>>> As part of the preparations for JDK 9, Oracle’s engineers have been
      >>>> analyzing open source projects to understand usage.
      >>>> One area of concern involves identifying compatibility problems, such as
      >>>> reliance on JDK-internal APIs.
      >>>>
      >>>> Our engineers have already prepared guidance on migrating some of the
      >>>> more common usage patterns of JDK-internal APIs to supported public
      >>>> interfaces. The list is on the OpenJDK wiki [0], along with instructions
      >>>> on how to run the jdeps analysis tool yourself .
      >>>>
      >>>> As part of the ongoing development of JDK 9, I would like to encourage
      >>>> migration from JDK-internal APIs towards the supported Java APIs.
      >>>>
      >>>> For anything where your migration path is unclear, (the JDK-9 team would like)
      >>>> comments on the JDK-internal API usage patterns - in particular comments elaborating on the rationale
      >>>> for them - either to me, "Rory O'Donnell Oracle, Dublin Ireland" <rory.odonnell@oracle.com>, or on this list, "Dalibor Topic" <dalibor.topic@oracle.com>.
      >>>>
      >>>> Finding suitable replacements for unsupported interfaces is not always
      >>>> straightforward, which is why I am reaching out to you early in the JDK
      >>>> 9 development cycle so you can give feedback about new APIs that may be
      >>>> needed to facilitate this exercise.
      >>>>
      >>>> Thank you in advance for any efforts and feedback helping us make JDK 9
      >>>> better.
      >>>>
      >>>> Rgds,Rory
      >>>>
      >>>> [0]
      >>>> https://wiki.openjdk.java.net/display/JDK8/Java+Dependency+Analysis+Tool
      >>>>
      >>>> –
      >>>> Rgds,Rory O'Donnell
      >>>> Quality Engineering Manager
      >>>> Oracle EMEA , Dublin, Ireland

      On 16/09/2014 18:59, Rebecca Searls wrote:
      > I ran jdeps on apache CXF ( http://git-wip-us.apache.org/repos/asf/cxf.git, branch 3.0.x-fixes)
      > and got the following results.
      >
      > —
      > digraph "ehcache-2.8.1.jar"

      { > // Path: ./services/sts/sts-war/target/SecurityTokenService/WEB-INF/lib/ehcache-2.8.1.jar > "net.sf.ehcache.pool.sizeof.UnsafeSizeOf" -> "sun.misc.Unsafe (JDK internal API (rt.jar))"; > }

      >
      > —
      > digraph "woodstox-core-asl-4.3.0.jar"

      { > // Path: ./services/sts/sts-war/target/SecurityTokenService/WEB-INF/lib/woodstox-core-asl-4.3.0.jar > "com.ctc.wstx.msv.GenericMsvValidator" -> "org.relaxng.datatype.Datatype (JDK internal API (tools > .jar))"; > }

      >

      "Balchandra Vaidya" <balchandra.vaidya@oracle.com> wrote ..
      >
      > Thank you for the report. Both sun.misc.Unsafe and
      > org.relaxng.datatype.Datatype
      > are JDK-internal APIs that have no supported replacements. If you are
      > unable to
      > migrate away, please provide us with an explanation.

      Would the CXF team respond to the JDK-9 team about their use of these 2 APIs?

      Attachments

        Activity

          People

            dkulp Daniel Kulp
            rsearls Rebecca Searls
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: