8154445: JShell: Drop residual use of addReads from jshell

Reviewed-by: alanb, ksrini
This commit is contained in:
Robert Field 2016-04-20 08:30:30 -07:00
parent d6521300a0
commit 6921adecb8

View File

@ -113,7 +113,6 @@ class RemoteAgent {
}
Method doitMethod;
try {
this.getClass().getModule().addReads(klass.getModule());
this.getClass().getModule().addExports(RemoteResolutionException.class.getPackage().getName(), klass.getModule());
doitMethod = klass.getDeclaredMethod(DOIT_METHOD_NAME, new Class<?>[0]);
doitMethod.setAccessible(true);
@ -184,7 +183,6 @@ class RemoteAgent {
break;
}
try {
this.getClass().getModule().addReads(klass.getModule());
Field var = klass.getDeclaredField(varname);
var.setAccessible(true);
Object res = var.get(null);