Issue1576036

classification
Title: Fix: SyspathJavaLoader file reader causes importerror
Type: Severity: normal
Components: None Versions:
Milestone:
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: Nosy List: cgroves, jaraco
Priority: normal Keywords: patch

Created on 2006-10-12.16:43:21 by jaraco, last changed 2007-03-09.17:25:31 by cgroves.

Files
File name Uploaded Description Edit Remove
SyspathJavaLoader.diff jaraco, 2006-10-12.16:43:22 SyspathJavaLoader file read patch
Messages
msg2534 (view) Author: Jason R. Coombs (jaraco) Date: 2006-10-12.16:43:21
This patch implements the suggestion given by Fabio 
Zadrozny in 
http://sourceforge.net/mailarchive/forum.php?
thread_id=7986001&forum_id=5586 .  This addresses a 
long standing bug (from what I can tell) whereby an 
ImportError or AttributeError ("java package 
<packagename> has no attribute <attribute>") even 
though the package loads and does correctly determine 
that those classes exist.

The patch is for the single file 
SyspathJavaLoader.java revision 2884.

I'm a fairly new java programmer, but I believe the 
implementation is sound.  It does resolve the import 
errors I was encountering importing a very simple 
class in sys.path.

I hope this helps, and I really look forward to 
jython 2.3!
msg2535 (view) Author: Charlie Groves (cgroves) Date: 2007-03-09.17:25:31
Looks good.  Committed in r3137.
History
Date User Action Args
2006-10-12 16:43:21jaracocreate