8172240: javac should not need the transitive closure to compile a moduleReviewed-by: jjgContributed-by: jan.lahoda@oracle.com