777 questions
1
vote
0
answers
58
views
Split Package problem in hbase-client module in apache hbase
I am working on creating module-info.java file for hbase-client module in apache hbase project. Now, hbase-client has direct incoming dependency on hbase-common module.
In apache hbase project, most ...
1
vote
2
answers
235
views
Java, using nested modules
Question looks easy, and probably has an easy solution, but I didn't find one.
Given module A that needs module B, which in turn needs module C.
Module A should not need to know about module C. I well ...
1
vote
1
answer
94
views
Mockito and module-info with Version 5.16.0+: Mockito cannot mock this class
I'm using the Java Module System since some years now and until Mockito 5.15.2 this was no Problem. But with Version 5.16.0+ I now got the following error:
Mockito cannot mock this class: class javax....
2
votes
1
answer
85
views
How to include the SPI "uses" and/or "provides" section for a module with Javadoc?
If you look at a module's documentation from the standard library, such as java.base, you'll see it has a section that lists which services it uses and which services it provides.
Based on the ...
0
votes
1
answer
45
views
Does adding a module dependency enable component scanning?
I have a project which has 2 modules A and B.
Module A depends on module B. (Maven compile and test dependency).
Module A and module B have the same package structure and names i.e
module A/src/main/...
0
votes
1
answer
31
views
How to add to modulepath?
Surefire has a parameter called additionalClasspathElements for adding elements to the test classpath.
Is there a way to add elements to the test modulepath instead?
0
votes
3
answers
261
views
Problems with jlinking javafx modules to make stand alone aplication
You can checkout my whole project on github. I currently don't use any dependency managers in my projects and I would like to keep it that way. I am using a library that I made in java and I am using ...
0
votes
1
answer
153
views
Package exists in another module - java.transaction.xa - JAVA 17
I am working on java 17 migration from java 8.
While upgrading the code I'm getting stuck on below error. Unable to proceed forward due to this issue.
Error:
[exec] ./src/javax/transaction/xa/Xid....
3
votes
1
answer
162
views
Resource Loading with SpringBoot @Value and JavaFX requires files to be in resources/static with java 9 modules. Why?
As the title says. To load a xml file (and any other file for that matter) via spring boots value annotation, the file has to sit in resources/static/path-to-file when using a module-info file. not ...
2
votes
1
answer
96
views
What arrows to use in component diagrams to show relations between JPMS layers?
JPMS supports multiple layers. For example boot layer and its two child layers.
And I need to show these layers on UML diagram. For this I selected component diagram where every layer is a component. ...
2
votes
0
answers
83
views
Running a modular Java application built by Gradle from IntelliJ IDEA
How to run a Java class with a main method from Idea in project managed by Gradle in a modular way?
For class like
package org.example.moduledemo;
public class Main {
public static void main(...
0
votes
0
answers
45
views
javac --patch-module doesn't work as expected at compile time
I want to compile my program with the use of the internal API of a modular java library which in addition is package-private. In the future I also want to fine-tune the package access at runtime to ...
0
votes
0
answers
106
views
java 9 modules causing errors
Recently we have started migrating to java 17 from 8. We found some jaxb exceptions (shown below) which got resolved after adding --add-opens=java.base/java.lang=ALL-UNNAMED. I am not sure if this is ...
0
votes
0
answers
118
views
Transform simple FO file to PDF using fop 2.10 and JPMS
I did an example that you may clone by
git clone https://github.com/rolfschumacher/chFop.git
Importing it to Eclipse as an existing Maven project and let it run leads to
Unable to derive module ...
0
votes
1
answer
208
views
Unable to use module com.azure.identity in modular java project
I am trying to use Microsoft's azure-identity module) in a Gradle app.
However .\gradlew run fails with this stack trace:
> Task :run
java.lang.module.FindException: Module msal4j.persistence....