RFC: add starred module(s)

Miloslav Zezulka mzezulka at redhat.com
Thu Nov 30 13:21:23 UTC 2017


Hello,

when working with @modules tag, it might be sometimes beneficial to have
the ability to open multiple packages from the same parent using one
@modules tag only (for example via star notation as in regular java
imports). The idea came to my mind when modifying some CPU reproducers to
be compatible with JDK9. Let's consider a JTreg comment for one of them:

 * ....
 * @modules java.security.jgss/sun.security.krb5.internal
 * @modules java.security.jgss/sun.security.krb5.internal.ccache
 * @modules java.security.jgss/sun.security.krb5.internal.crypto
 * @modules java.security.jgss/sun.security.krb5.internal.ktab
 * @modules java.base/sun.security.util
 * @modules java.security.jgss/sun.security.jgss
 */

Although this has the advantage thta we explicitly know which internal
packages are being opened for the given test, someone might prefer to use
the @modules tag the folllowing way to make the JTreg comment more readable
and less wordier:

 * ....
 * @modules java.security.jgss/sun.security.krb5.internal.*
 * @modules java.base/sun.security.util
 * @modules java.security.jgss/sun.security.jgss
 */

As a JTreg newbie, I wasn't able to find such feature in the current
version. The attached patch is a draft of how this might be implemented.

Thoughts?

Thanks,
Míla
-------------- next part --------------
A non-text attachment was scrubbed...
Name: starmodules.patch
Type: text/x-patch
Size: 3465 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/jtreg-dev/attachments/20171130/79a37162/starmodules.patch>


More information about the jtreg-dev mailing list