mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix super method evaluation
This commit is contained in:
+4
@@ -38,6 +38,10 @@ public class DisableGC implements Evaluator{
|
||||
return result;
|
||||
}
|
||||
|
||||
public Evaluator getDelegate() {
|
||||
return myDelegate;
|
||||
}
|
||||
|
||||
public Modifier getModifier() {
|
||||
return myDelegate.getModifier();
|
||||
}
|
||||
|
||||
+5
-1
@@ -61,7 +61,11 @@ public class MethodEvaluator implements Evaluator {
|
||||
public Object evaluate(EvaluationContextImpl context) throws EvaluateException {
|
||||
if(!context.getDebugProcess().isAttached()) return null;
|
||||
DebugProcessImpl debugProcess = context.getDebugProcess();
|
||||
final boolean requiresSuperObject = myObjectEvaluator instanceof SuperEvaluator;
|
||||
|
||||
final boolean requiresSuperObject =
|
||||
myObjectEvaluator instanceof SuperEvaluator ||
|
||||
(myObjectEvaluator instanceof DisableGC && ((DisableGC)myObjectEvaluator).getDelegate() instanceof SuperEvaluator);
|
||||
|
||||
final Object object = myObjectEvaluator.evaluate(context);
|
||||
if (LOG.isDebugEnabled()) {
|
||||
LOG.debug("MethodEvaluator: object = " + object);
|
||||
|
||||
Reference in New Issue
Block a user