Java maintenance and ecosystem

Identify packages by ownership

Both javax packages belong to Java SE. A blanket namespace replacement would break these imports.

Formal Syntax & Structure

java syntaxjava
Class.getModule().getName()

Working Example

Example Snippetjava
public class Main {    public static void main(String[] args) throws Exception {        System.out.println(javax.crypto.Cipher.class.getModule().getName());        System.out.println(javax.sql.DataSource.class.getModule().getName());    }}
Java Reference