WIP: 8154714: JShell API: addExports support [for Java 9.X]

Robert Field robert.field at oracle.com
Thu Sep 1 17:25:27 UTC 2016


On 09/01/16 05:36, ShinyaYoshida wrote:
> Hi all,
> I've implemented this feature to JShell API and Tool with full completion:
> Bugs: https://bugs.openjdk.java.net/browse/JDK-8154714
>
> jdk: 
> http://cr.openjdk.java.net/~shinyafox/kulla/8154714/webrev.00.jdk/ 
> <http://cr.openjdk.java.net/%7Eshinyafox/kulla/8154714/webrev.00.jdk/>
> langtools: 
> http://cr.openjdk.java.net/~shinyafox/kulla/8154714/webrev.00.langtools/ 
> <http://cr.openjdk.java.net/%7Eshinyafox/kulla/8154714/webrev.00.langtools/>
>

I'll look at this today.

> This is missing the train of Java 9.0 but it could catch the train of 
> Java 9.1 or later.
> I want to get your comments for this.

I've assigned this to you.  I think it is important to get this in for 
9.  So, if you think it can be ready soon we can make it happen.

>
> jshell> /set add-exports jdk.jconsole sun.tools.jconsole

We don't currently have any hyphenated sub-commands.  What do people 
think of just having it be "exports"?

>
> jshell> import sun.tools.jconsole.*
>
> jshell> LocalVirtualMachine.getAllVirtualMachines().forEach((k, v) -> 
> System.out.println(k + ":" + v))
> 10778:jdk.jshell/jdk.internal.jshell.tool.JShellTool
> 10826:jdk.jshell.execution.RemoteExecutionControl 35548
> 28447:org.netbeans.Main --cachedir 
> /home/bitter_fox/.cache/netbeans/8.0.1 --userdir 
> /home/bitter_fox/.netbeans/8.0.1 --branding nb
>
> Currently, there is no testing, so it will be required to add test.

Of course.

>
> Regards,
> shinyafox(Shinya Yoshida)

Thanks,
Robert



More information about the kulla-dev mailing list