Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A package 'java.util.*' conflict from Maven dependency 'high-scale-lib' #141

Open
netskill opened this issue Dec 30, 2024 · 0 comments
Open

Comments

@netskill
Copy link

I found that the jar file 'high-scale-lib' has a package 'java.util', and then the project 'basic-server' got a package conflict issue.

I remove the maven dependency, as following.
<dependency> <groupId>com.boundary</groupId> <artifactId>high-scale-lib</artifactId> </dependency>

After that, I replace the following codes at classLocalFileSystem.
private final NonBlockingHashMapLong<Path> inodeToPath = new NonBlockingHashMapLong<>(); private final NonBlockingHashMap<Path, Long> pathToInode = new NonBlockingHashMap<>();

private final ConcurrentHashMap<Long,Path> inodeToPath = new ConcurrentHashMap<>(); private final ConcurrentHashMap<Path,Long> pathToInode = new ConcurrentHashMap<>();

I want to know if this way is correct, or I have to use the class 'NonBlockingHashMapLong' ?

Many thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant