Skip to main content
Best practices
1 vote
4 replies
93 views

Problem When serializing Java standard library classes (like java.awt.Rectangle, Point, Dimension, etc.) using frameworks like XStream, Jackson, or Gson, I'm forced to use --add-opens flags: --add-...
Thomas's user avatar
  • 1,772
1 vote
0 answers
72 views

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 ...
Dev Hingu's user avatar
3 votes
2 answers
247 views

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 ...
Gyro Gearloose's user avatar
2 votes
1 answer
123 views

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....
PowerStat's user avatar
  • 3,873
3 votes
1 answer
101 views

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 ...
Slaw's user avatar
  • 49.9k
0 votes
1 answer
49 views

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/...
Harsha Limaye's user avatar
0 votes
1 answer
44 views

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?
Gili's user avatar
  • 90.9k
0 votes
3 answers
308 views

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 ...
Dimnik's user avatar
  • 79
0 votes
1 answer
170 views

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....
Shubham Biradar's user avatar
3 votes
1 answer
169 views

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 ...
LookingForFish's user avatar
2 votes
1 answer
109 views

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. ...
SilverCube's user avatar
  • 1,188
2 votes
0 answers
86 views

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(...
czerny's user avatar
  • 16.9k
0 votes
0 answers
45 views

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 ...
basin's user avatar
  • 4,258
0 votes
0 answers
117 views

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 ...
Sanjay's user avatar
  • 313
0 votes
0 answers
125 views

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 ...
ngong's user avatar
  • 904

15 30 50 per page
1
2 3 4 5
52