JDK-8142991 : Re-examine jdk.scripting.nashorn.shell linked in JRE that drags in jdk.compiler
  • Type: Bug
  • Component: core-libs
  • Sub-Component: jdk.nashorn
  • Affected Version: 9-repo-jigsaw
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2015-11-13
  • Updated: 2016-01-06
  • Resolved: 2015-11-17
Related Reports
Relates :  
Description
jdk.scripting.nashorn.shell is linked into JRE (see top/make/Images.gmk - added by JDK-8134260)

It pulls in jdk.compiler into JRE

$ ./bin/jmod -p  ../jmods/jdk.scripting.nashorn.shell.jmod 

Name:
  jdk.scripting.nashorn.shell@9.0
Requires:
  jdk.compiler
  java.base [ MANDATED ]
  jdk.scripting.nashorn
  jdk.internal.le
  java.desktop

Comments
fixed in jake/nashorn.
17-11-2015

jdk9-dev/modules.xml has this: <depend>java.compiler</depend> <!-- java package completion --> only jake/jigsaw module-info.java has wrong dependency - jdk.compiler instead of java.compiler.
17-11-2015