8154445: JShell: Drop residual use of addReads from jshell
Reviewed-by: alanb, ksrini
This commit is contained in:
parent
d6521300a0
commit
6921adecb8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user