Skip to content

Duplicate dependancies causes an Ambiguous reference compilation error? #442

Closed Answered by wasabii
jeremyosterhoudt asked this question in Q&A
Discussion options

You must be logged in to vote

Well, the issue can bepresent, in that you have duplicate overlapping class names on your classpath in Java, and if you attempted to compile code against both of these JAR files at the same time, javac.exe would throw an error regarding the duplicate class name. When you type new Range in Java, it wouldn't know which Range you were talking about.

So here's what I've found: https://github.com/ClickHouse/clickhouse-java/tree/main/third-party-libraries/io.grpc

There's a package com.clickhouse:io.grpc in Maven, dependended on by the clickhouse stuff. It appears to be a repackage of gRPC, but configured differently (with JPMS support). So yeah, it overlaps. Which one do you intend to use?

In J…

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@jeremyosterhoudt
Comment options

@wasabii
Comment options

@jeremyosterhoudt
Comment options

@wasabii
Comment options

Answer selected by jeremyosterhoudt
@jeremyosterhoudt
Comment options

@wasabii
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants