Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-3690

Dependency Conflict problems: several conflicting classes exist in different JARs (mockito-all/hamcrest-all)

Details

    • Bug
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • 2.2.0
    • 2.4.0
    • sdk-java-core

    Description

      Hi, we found that there are duplicate classes exist in different JARs, and these classes have different features.

      The conflicting JAR pairs are:

      1. jar-pair:<org.mockito:mockito-all:1.9.5:><org.hamcrest:hamcrest-all:1.3:>

      2. jar-pair:<org.mockito:mockito-all:1.9.5:><org.hamcrest:hamcrest-core:1.3:>

      Some of method only exist in one version of duplicate classes.

      As the JVM only load the classes present first on the classpath and shadow the other duplicate ones with the same names. The dependency conflict problem brings high risks of "NoSuchMethodException" or "NoSuchMethodError"  issues at runtime. The conflicting details are listed in the attachment. Please notice that. Thanks.

       

      Attachments

        1. beam_conflicts.txt
          12 kB
          PandaMonkey

        Activity

          People

            PandaMonkey PandaMonkey
            PandaMonkey PandaMonkey
            Votes:
            0 Vote for this issue
            Watchers:
            3 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 - 3h 10m
                3h 10m