Most voted "java-9" questions
Use this tag to ask specifically about version 9 of Java. Always remember to also use the Java tag.
Learn more…9 questions
Sort by count of
-
16
votes3
answers582
viewsMaven Module vs Java 9 Module
Besides the fact that Maven works with jars and Java 9 with "modules", what is the difference between the modularization system of the two? Why would I stop modularizing my systems with Maven to…
-
16
votes2
answers11683
viewsWhat is the difference between Arrays.asList and List.of?
Studying Java 9, I saw a new method that works with collections: List.of, example: List<String> frutas = List.of("maça", "laranja"); I’ve used it before Arrays.asList, example:…
-
8
votes2
answers248
viewsAlternative to Observable and Observer in Java 9
For testing purposes, I am porting an application from version 7 to version 9 of Java. This application has some features that use Observer and Observable. I realized that both became obsolete:…
java pattern-design characteristic-language observer-pattern java-9asked 7 years, 2 months ago Homer Simpson 3,001 -
8
votes1
answer214
viewsHow to compile a Java 9 project with Lombok in Gradle?
TL;DR How to pass multiple parameters -J--add-opens=<pacote>=ALL-UNNAMED so that Gradle uses them when calling javac? Details I have a code Helloworld.java using the Lombok in Java 9: import…
-
2
votes1
answer57
viewsonSpinWait Java 9
I am porting a Java 8 application to 9, I have some processes that use the concept of Watchdog, who use something similar to: public synchronized void run() { until = System.currentTimeMillis() +…
-
2
votes1
answer128
viewsModular Maven design with modular Java10 cannot find the java module
I am adapting the exercise of the book "Java 9 - Interactive, reactive and modularized - author Rodrigo Turini" to a modular Maven project with java 10 modular. However when running, you are not…
-
2
votes1
answer128
viewsWhat is it for and where should I use "strictfp"
I was reading the Java 9 specification and came across the keyword strictfp, What good is only that it is not clear. What good is that and where I should apply it? Why is it not so used in the…
-
1
votes0
answers963
viewsUse of module-info.java
When the Eclipse creates a module-info.java what would be? How should I employ? In places where I seek nothing is synthesized.
-
0
votes0
answers114
viewsIs it possible to create more than one java9(module-info) module per mavem project in the eclipse?
I am testing the java 9 module system and so far I have been able to create a project in eclipse (Maven or java) and create the module-info by the option : Right-click on the project + configure +…