Skip to content

Commit b6aa3ea

Browse files
committed
allow more arities on some not implemented functions
fixes #1517
1 parent 9ce6207 commit b6aa3ea

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Jython 2.5.2a1
2222
- [ 1576 ] files opened in 'a+' mode not readable
2323
- [ 1563 ] unicode() for Java objects working differently in 2.2 and 2.5
2424
- [ 1566 ] os.popen(cmd).read() returns `\r\n` as newline on Windows with Jython 2.5
25+
- [ 1517 ] TypeError: get_referrers
2526
- Fix runtime issues during exitfuncs triggered via SystemRestart (such as
2627
during Django or Pylons development mode reloading)
2728
- Fix pickling of collections.defaultdict objects

src/org/python/modules/gc.java

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
package org.python.modules;
22

3-
import org.python.core.ClassDictInit;
43
import org.python.core.Py;
5-
import org.python.core.PyException;
6-
import org.python.core.PyInteger;
74
import org.python.core.PyObject;
85

96
public class gc {
@@ -34,12 +31,12 @@ public static PyObject get_count() {
3431
throw Py.NotImplementedError("not applicable to Java GC");
3532
}
3633

37-
public static void set_debug() {
34+
public static void set_debug(int flags) {
3835
throw Py.NotImplementedError("not applicable to Java GC");
3936
}
4037
public static int get_debug() { return 0; }
4138

42-
public static void set_threshold() {
39+
public static void set_threshold(PyObject[] args, String[] kwargs) {
4340
throw Py.NotImplementedError("not applicable to Java GC");
4441
}
4542
public static PyObject get_threshold() {
@@ -49,10 +46,10 @@ public static PyObject get_threshold() {
4946
public static PyObject get_objects() {
5047
throw Py.NotImplementedError("not applicable to Java GC");
5148
}
52-
public static PyObject get_referrers() {
49+
public static PyObject get_referrers(PyObject[] args, String[] kwargs) {
5350
throw Py.NotImplementedError("not applicable to Java GC");
5451
}
55-
public static PyObject get_referents() {
52+
public static PyObject get_referents(PyObject[] args, String[] kwargs) {
5653
throw Py.NotImplementedError("not applicable to Java GC");
5754
}
5855

0 commit comments

Comments
 (0)