Skip to content

Calling Charset.forName leaves REPL in unusable state, constant access denied error #126

Open
@itaisha

Description

@itaisha

Open the Java REPL and try calling:

java.nio.charset.Charset.forName("US-ASCII") 

this completes successfully, but hereafter every action on the REPL will result in an error:

java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "accessClassInPackage.sun.nio.cs")  

even trivial things like assigning value to an unrelated integer.
It seems the console repeatedly tries to do something with the object returned by the call to Charset.forName, and does not handle the error gracefully.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions