non-API classes displayed by jrt filesystem

Philippe Marschall philippe.marschall at netcetera.ch
Mon Oct 19 12:12:01 UTC 2015


Hi

I'm toying around with the jrt filesystem [1]. I noted that non-API 
classes are shown for java modules (see attachment). I assume this is 
because jrt currently reports all classes in a module, not just the 
exported ones (and these classes are not exported). Assuming this is the 
intended behavior this is a bit inconvenient. One would have to parse 
the module-info.class to find out what is exported. Some possible 
solutions could include:

  * have a file attribute specific to the jrt filesystem "exported" to 
report whether a file/package is exported
  * have two subtrees in a module, eg. "all" and "exported"

  [1] https://github.com/marschall/jrt-explorer

Cheers
Philippe
-------------- next part --------------
java.activation:
    com.sun.activation
java.base:
    com.oracle.net
    com.oracle.nio
    com.sun.crypto
    com.sun.java
    com.sun.net
    com.sun.nio
    com.sun.security
    jdk.internal.jimage
    jdk.internal.jrtfs
    jdk.internal.misc
    jdk.internal.module
    jdk.internal.org
    jdk.internal.util
    sun.invoke.anon
    sun.invoke.empty
    sun.invoke.util
    sun.launcher.resources
    sun.misc.resources
    sun.net.dns
    sun.net.ftp
    sun.net.idn
    sun.net.sdp
    sun.net.smtp
    sun.net.spi
    sun.net.util
    sun.net.www
    sun.nio.ch
    sun.nio.cs
    sun.nio.fs
    sun.reflect.annotation
    sun.reflect.generics
    sun.reflect.misc
    sun.security.action
    sun.security.internal
    sun.security.jca
    sun.security.pkcs
    sun.security.pkcs10
    sun.security.pkcs12
    sun.security.provider
    sun.security.rsa
    sun.security.ssl
    sun.security.timestamp
    sun.security.tools
    sun.security.util
    sun.security.validator
    sun.security.x509
    sun.text.bidi
    sun.text.normalizer
    sun.text.resources
    sun.util.calendar
    sun.util.cldr
    sun.util.locale
    sun.util.logging
    sun.util.resources
    sun.util.spi
java.corba:
    com.sun.corba
    com.sun.jndi
    com.sun.org
    com.sun.tools
java.datatransfer:
    sun.datatransfer.resources
java.desktop:
    com.apple.eawt
    com.apple.eio
    com.apple.laf
    com.sun.accessibility
    com.sun.awt
    com.sun.beans
    com.sun.imageio
    com.sun.java
    com.sun.media
    com.sun.swing
    sun.applet.resources
    sun.awt.datatransfer
    sun.awt.dnd
    sun.awt.event
    sun.awt.geom
    sun.awt.im
    sun.awt.image
    sun.awt.resources
    sun.awt.shell
    sun.awt.util
    sun.awt.windows
    sun.awt.www
    sun.dc.path
    sun.dc.pr
    sun.java2d.cmm
    sun.java2d.loops
    sun.java2d.opengl
    sun.java2d.pipe
    sun.java2d.pisces
    sun.lwawt.macosx
    sun.print.resources
    sun.swing.icon
    sun.swing.plaf
    sun.swing.table
    sun.swing.text
java.instrument:
    jdk.internal.instrumentation
java.logging:
    sun.net.www
    sun.util.logging
java.management:
    com.sun.jmx
    sun.management.counter
    sun.management.jdp
    sun.management.jmxremote
    sun.management.resources
    sun.management.spi
java.naming:
    com.sun.jndi
    com.sun.naming
    sun.security.provider
java.rmi:
    com.sun.rmi
    sun.rmi.log
    sun.rmi.registry
    sun.rmi.runtime
    sun.rmi.server
    sun.rmi.transport
java.scripting:
    com.sun.tools
java.security.jgss:
    sun.net.www
    sun.security.jgss
    sun.security.krb5
java.security.sasl:
    com.sun.security
java.smartcardio:
    sun.security.smartcardio
java.sql.rowset:
    com.sun.rowset
java.xml:
    com.sun.java_cup
    com.sun.org
    com.sun.xml
java.xml.bind:
    com.sun.istack
    com.sun.xml
java.xml.crypto:
    com.sun.org
java.xml.ws:
    com.oracle.webservices
    com.oracle.xmlns
    com.sun.org
    com.sun.xml


More information about the jigsaw-dev mailing list