Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 142099 - jython-2.1 uses reserved assert function from Java
Summary: jython-2.1 uses reserved assert function from Java
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL: http://sourceforge.net/tracker/index....
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-29 08:52 UTC by Hanno Zysik (geki)
Modified: 2006-07-29 14:30 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
workaround (jython-2.1-reserved-assert-func.diff,1.63 KB, patch)
2006-07-29 08:54 UTC, Hanno Zysik (geki)
Details | Diff
diff from jython svn trunk (jython-2.1-reserved-assert-func.diff,2.00 KB, patch)
2006-07-29 12:32 UTC, Hanno Zysik (geki)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hanno Zysik (geki) 2006-07-29 08:52:16 UTC
See upstream report at URL.
Workaround will be attached.
Comment 1 Hanno Zysik (geki) 2006-07-29 08:53:43 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)
Comment 2 Hanno Zysik (geki) 2006-07-29 08:54:19 UTC
Created attachment 93013 [details, diff]
workaround
Comment 3 Hanno Zysik (geki) 2006-07-29 12:32:17 UTC
Created attachment 93018 [details, diff]
diff from jython svn trunk
Comment 4 Petteri Räty (RETIRED) gentoo-dev 2006-07-29 14:30:01 UTC
(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.