-
Bug
-
Resolution: Fixed
-
P3
-
9
-
b139
-
generic
-
generic
-
Verified
> On Apr 13, 2016, at 10:43 PM, Ben Evans wrote:
>
> Hi Max,
>
> This is being stopped by the Java 9 module system, as sun.* is an
> internal package.
That's why I added -J-XaddExports:java.base/sun.security.provider=ALL-UNNAMED but it doesn't work.
>
> Is there a flag that can be used to override this in jshell? Do we
> think such a feature would even be desirable?
Personally I find it useful if I am either authoring those internal classes or using them when implementing a public API.
Thanks
Max
>
> Thanks,
>
> Ben
>
>
> On Wed, Apr 13, 2016 at 10:22 AM, Wang Weijun wrote:
>>
>> $ jshell -J-XaddExports:java.base/sun.security.provider=ALL-UNNAMED
>> | Welcome to JShell -- Version 9-internal
>> | Type /help for help
>>
>> -> import sun.security.provider.SecureRandom
>> | Error:
>> | package sun.security.provider does not exist
>> | import sun.security.provider.SecureRandom;
>> | ^--------------------------------^
>>
>> Thanks
>> Max
>>
- blocks
-
JDK-8165802 jshell tool: session duration: /set exports and /set classpath
- Closed
-
JDK-8165803 jshell tool: module/package should be optional in /retain exports
- Closed
- relates to
-
JDK-8165445 jshell tool: Completion for /set exports or /retain exports
- Closed
-
JDK-8080358 JShell API: need JShellState.setModulePath()
- Closed
-
JDK-8165802 jshell tool: session duration: /set exports and /set classpath
- Closed
-
JDK-8166649 jshell tool: missing --add-modules and --module-path
- Closed
(1 relates to)