Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 142099

Summary: jython-2.1 uses reserved assert function from Java
Product: Gentoo Linux Reporter: Hanno Zysik (geki) <h.mth>
Component: New packagesAssignee: 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
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.