When I try to import javax.swing.JFrame, eclipse complains because I need to explicitly tell my package that I'm going to import stuff from the java.desktop module. So I put requires java.desktop in my module-info.java and then the java compiler knows to link up the java.desktop stuff. I can put requires java.base in my module-info.java as well, but it doesn't seem to be necessary. I can import java.util.Arrays without it.
Is eclipse adding some magic sauce to my javac options behind the scenes? Does javac automagically require java.base? Why don't I need to require java.base? If this is compiler magic, are there any other such privileged modules that get automatically linked into my package?
Using jdk-14, but not sure if that's relevant.