Top "Java-9" questions

Use this tag for questions specific to Java 9, which is version 9 of the Java platform, released on the 21st of September 2017.

Difference between RxJava API and the Java 9 Flow API

It seems on every iteration of Java for the last few major releases, there are consistently new ways to manage …

java rx-java rx-java2 java-9
How to apply Filtering on groupBy in java streams

How do you group first and then apply filtering using Java streams? Example: Consider this Employee class: I want to …

java java-8 java-stream java-9 collectors
Is it possible to mix --class-path and --module-path in javac (JDK 9)?

When I compile a module that depends on other modules I've compiled previously I have to specify the --module-path <…

java classpath java-9 module-path
Android SDK manager throw Exception with Java 9

Using sdk-tools-darwin-4333796 (26.1.1) with Java 9 when running sdkmanager is throwing : Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/…

java android android-sdk-tools java-9
Why did Java 9 introduce the JMOD file format?

Java 9 has three ways to package compiled code in files: JAR JMOD JIMAGE JIMAGE is optimized for speed and space …

java java-9 java-platform-module-system jmod
Accessing com.sun.tools.javac.util from Java 9

I'm trying to access the List class from com.sun.tools.javac.util. This works fine with Java 8, but when …

java java-9 java-module sun
Java 9, compatability issue with ClassLoader.getSystemClassLoader

The following code adds jar file to the build path, it works fine with Java 8. However, it throws exception with …

java classloader java-9 urlclassloader
How to express dependency in maven on java ee features for transition to Java 9?

We use maven and have artifacts that in turn depend on other internal artifacts. I am in the process of …

java maven jaxb java-9 java-platform-module-system
Error:BUG! exception in phase 'class generation' in source unit '_BuildScript_' unsupported Target MODULE

I'm trying to create a new Java 9 project using gradle but right after project creation I received error from gradle: …

java intellij-idea gradle java-9
Private interface methods, example use-case?

"Support for private methods in interfaces was briefly in consideration for inclusion in Java SE 8 as part of the effort …

java interface private java-9