Skip to content

Commit

Permalink
[GR-40566] Fix insights reporting agent members non-invocable
Browse files Browse the repository at this point in the history
PullRequest: graal/12561
  • Loading branch information
timfel committed Sep 4, 2022
2 parents bc85dc3 + 5e801ed commit f53bce2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
*/
package com.oracle.truffle.tools.agentscript.impl;

import java.io.IOException;

import org.graalvm.tools.insight.Insight;

import com.oracle.truffle.api.CompilerDirectives;
import com.oracle.truffle.api.interop.InteropLibrary;
import com.oracle.truffle.api.interop.TruffleObject;
Expand All @@ -32,8 +36,6 @@
import com.oracle.truffle.api.library.CachedLibrary;
import com.oracle.truffle.api.library.ExportLibrary;
import com.oracle.truffle.api.library.ExportMessage;
import java.io.IOException;
import org.graalvm.tools.insight.Insight;

@SuppressWarnings({"unused", "static-method"})
@ExportLibrary(InteropLibrary.class)
Expand Down Expand Up @@ -155,6 +157,6 @@ private static String convertToString(InteropLibrary interop, Object obj) throws

@ExportMessage
static boolean isMemberInvocable(AgentObject obj, String member) {
return false;
return "on".equals(member) || "off".equals(member);
}
}
2 changes: 1 addition & 1 deletion vm/mx.vm/suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
},
{
"name": "graalpython",
"version": "3a4f83c71705d528c883b790e5eb264cfabd5052",
"version": "f7a2c06b003d6ddb46976504a581859c3da0cc55",
"dynamic": True,
"urls": [
{"url": "https://github.com/graalvm/graalpython.git", "kind": "git"},
Expand Down

0 comments on commit f53bce2

Please sign in to comment.