Skip to content

Commit

Permalink
解决冲突
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan-QLB committed Nov 27, 2024
1 parent 9a22a65 commit 25992ae
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,18 @@
import ognl.OgnlException;
import ognl.OgnlRuntime;

import java.util.Map;

/**
* @author hengyunabc 2022-03-24
*/
public class ArthasObjectPropertyAccessor extends ObjectPropertyAccessor {

@Override
public Object getPossibleProperty(OgnlContext context, Object target, String name) throws OgnlException {
public Object getPossibleProperty(Map context, Object target, String name) throws OgnlException {
Object result;
try {
result = OgnlRuntime.getFieldValue(context, target, name, true);
result = OgnlRuntime.getFieldValue((OgnlContext) context, target, name, true);
} catch (Exception ex) {
throw new OgnlException(name, ex);
}
Expand All @@ -25,7 +27,7 @@ public Object getPossibleProperty(OgnlContext context, Object target, String nam
}

@Override
public Object setPossibleProperty(OgnlContext context, Object target, String name, Object value) throws OgnlException {
public Object setPossibleProperty(Map context, Object target, String name, Object value) throws OgnlException {
if (GlobalOptions.strict) {
throw new IllegalAccessError(GlobalOptions.STRICT_MESSAGE);
}
Expand Down

0 comments on commit 25992ae

Please sign in to comment.