Skip to content
Snippets Groups Projects
Commit 116f4560 authored by Adam Welc's avatar Adam Welc
Browse files

Names used for slot retrieval must be interned.

parent 61248b9e
Branches
No related tags found
No related merge requests found
......@@ -98,8 +98,9 @@ public abstract class AccessSlotNode extends RNode {
@Specialization(contains = "getSlotS4Cached", guards = "object.isS4()")
protected Object getSlotS4(RAttributable object, String name) {
Object value = object.getAttr(attrProfiles, name.intern());
return getSlotS4Internal(object, name, value);
String internedName = name.intern();
Object value = object.getAttr(attrProfiles, internedName);
return getSlotS4Internal(object, internedName, value);
}
protected RFunction getDataPartFunction(REnvironment methodsNamespace) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment