Skip to content

Commit 58e370e

Browse files
committed
make getLazyPythonClass a library message
1 parent 0e13bbb commit 58e370e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/object/PythonObject.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ public final void setLazyPythonClass(PythonAbstractClass cls,
107107
/**
108108
* This is usually final, a fact may be optimized further if the storage turns into a constant.
109109
*/
110+
@ExportMessage
110111
public final LazyPythonClass getLazyPythonClass() {
111112
return storedPythonClass;
112113
}

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/object/PythonObjectLibrary.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ public void setDict(PythonAbstractObject receiver, PHashingCollection dict) thro
6666
throw UnsupportedMessageException.create();
6767
}
6868

69+
public abstract void getLazyPythonClass(PythonAbstractObject receiver);
70+
6971
public abstract void setLazyPythonClass(PythonAbstractObject receiver, LazyPythonClass cls);
7072

7173
static final LibraryFactory<PythonObjectLibrary> FACTORY = LibraryFactory.resolve(PythonObjectLibrary.class);

0 commit comments

Comments
 (0)