I am trying to recompile a JAVA8 code in JAVA11. Getting below compilation errors.
error: reference to Module is ambiguous
private Module module;
both interface com.module.Module in com.module and class java.lang.Module in java.lang match
Being new to the Java not able to fully understand the root cause. Any information will be of great help.