Uploaded image for project: 'Maven Shared Components'
  1. Maven Shared Components
  2. MSHARED-786

jdk8 incompatibility at runtime (NoSuchMethodError)

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Patch

    Description

      Using the maven-dependencies-analyzer 1.11.0 that is compiled with jdk9 lead to a error if used in jdk8:

      java.lang.NoSuchMethodError: java.nio.ByteBuffer.limit(I)Ljava/nio/ByteBuffer

      ByteBuffer need to be cast at Buffer for some method.

      I'm not sure if it possible to detect that at compile time

      Others get the issue too see: https://github.com/apache/felix/pull/114/

       

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            olamy Olivier Lamy
            skygo Eric Barboni
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m

                Slack

                  Issue deployment