question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Java 11 module path conflicting package

See original GitHub issue

When using flexmark as a dependency in a JDK11 project, I’m running into problems when using the MutableDataHolder, … from the flexmark-util package. I’m unable to put both require flexmark; and require flexmark.util; in my module-info since both of those seem to expose the same com.vladsch.flexmark package, which is not allowed… Am I using the library wrong or is there no support yet for java 9+?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Crazy-Duckcommented, Oct 23, 2018

I agree that the module system is just another stab at handling dependency management, although I do think the enhanced support for encapsulation and the explicit listing of dependencies is a nice improvement. However I disagree that there is no way to make a library both Java 8 and Java 9 compatible. The automatic module system exists for this exact purpose, the only requirement being that there be no conflicting packages. In short the main thing that would be needed to make the library Java 9+ compatible would just be resolving the package name conflicts, there’s no need to make it fully modular yet.

0reactions
vschcommented, Nov 30, 2018

I fully agree and the library is well overdue for major refactoring that I did not do because it would break existing code.

I am in the process of layout out the plan of action now so I can address this and other breaking clean up (#233) in one breaking release. I would like to include, if possible at least a RegEx to apply to existing source to help with the changes. I expect most of them will be import statement changes, most of which will be easily handled with a regex.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Migrating to Java 11: I need help resolving Classpath ...
I'm not in a position to redo all of the module or classpath, only to fix the last conflict (Cannot find the class...
Read more >
Java 11 Modules and Dependency conflicts (e.g. java.xml)
I'm using IntelliJ IDEA Community Edition (which is free) and I'm not seeing those errors. So, this implies to me that it might...
Read more >
Solved: Eclipse JDK8 to JDK11 Issue: Package is accessible...
The problem that I'm facing isn't that a package exists in multiple JARs. The conflict that I'm running into is where a package...
Read more >
560635 – [9] Package conflict message should include jar file ...
So we are lost in space with our ANT scripts having no problems at all with compiler/source/target Java version 11 - but Eclipse...
Read more >
Transition from Java 8 to Java 11 - Azure - Microsoft Learn
An easy way to check for a split package is to plug your module path and class path into jdeps and use the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found