java-repl icon indicating copy to clipboard operation
java-repl copied to clipboard

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

Open itaisha opened this issue 7 years ago • 0 comments

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.

itaisha avatar Nov 27 '17 09:11 itaisha