Summary: | jython-2.1 uses reserved assert function from Java | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Hanno Zysik (geki) <h.mth> |
Component: | New packages | Assignee: | Java team <java> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | High | ||
Version: | 2006.0 | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://sourceforge.net/tracker/index.php?func=detail&aid=1005593&group_id=12867&atid=112867 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
workaround
diff from jython svn trunk |
Description
Hanno Zysik (geki)
2006-07-29 08:52:16 UTC
Totally forgot the error: >>> Emerging (1 of 12) dev-java/jython-2.1-r7 to / * Previously fetched: jython-2.1.tar.bz2 MD5 ;-) ... [ ok ] * Previously fetched: jython-2.1.tar.bz2 RMD160 ;-) ... [ ok ] * Previously fetched: jython-2.1.tar.bz2 SHA1 ;-) ... [ ok ] * Previously fetched: jython-2.1.tar.bz2 SHA256 ;-) ... [ ok ] * Previously fetched: jython-2.1.tar.bz2 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking jython-2.1.tar.bz2 ;-) ... [ ok ] * Using: gcj-jdk-4.1 >>> Unpacking source... >>> Unpacking jython-2.1.tar.bz2 to /var/tmp/portage/jython-2.1-r7/work >>> Source unpacked. >>> Compiling source in /var/tmp/portage/jython-2.1-r7/work/jython-2.1 ... ---------- 1. ERROR in org/python/core/Py.java (at line 989) public static void assert(PyObject test, PyObject message) { ^^^^^^ Syntax error on token "assert", Identifier expected ---------- 2. ERROR in org/python/core/Py.java (at line 989) public static void assert(PyObject test, PyObject message) { ^^^^ Duplicate field Py.test ---------- 3. ERROR in org/python/core/Py.java (at line 990) if (!test.__nonzero__()) { ^^^^ test cannot be resolved ---------- 4. ERROR in org/python/core/Py.java (at line 991) throw new PyException(Py.AssertionError, message); ^^^^^^^ message cannot be resolved ---------- 5. ERROR in org/python/core/Py.java (at line 995) public static void assert(PyObject test) { ^^^^^^ Syntax error on token "assert", Identifier expected ---------- 6. ERROR in org/python/core/Py.java (at line 995) public static void assert(PyObject test) { ^^^^ Duplicate field Py.test ---------- 7. ERROR in org/python/core/Py.java (at line 996) assert(test, Py.None); ^ Syntax error on token ",", . expected ---------- 7 problems (7 errors) Created attachment 93013 [details, diff]
workaround
Created attachment 93018 [details, diff]
diff from jython svn trunk
(In reply to comment #3) > Created an attachment (id=93018) [edit] > diff from jython svn trunk > Patch applied. Thanks for the bug report and fix. |