From: <sp...@is...> - 2001-11-26 08:19:44
|
Hi Robert! Thank you for having some interest in this annoying problem -=20= I'm really happy to get support :) > > My only half-baked idea for your situation is to see if explicit = package > discovery helps at all. sys.add_package("packagename") gives the > packagemanager hints about what is a java package. Maybe using > sys.add_package("net.sourceforge.spedit.app") is good for something. This works, but the problem is the same: Jython is unable to access=20 net.sourceforge.spedit.app.Application. > Does using jython's -v switch give any useful hints? No, the error is still this "AttributeError", and there is no other=20 valuable information displayed. Actually I have tried with a Linux JDK=20= and the error does not occur, I have also tried with Jython2.0 insted of=20= the current 2.1a3, both had the same behaviour. So basically the error=20= is due to a different behaviour in MacOS X JDK. If I want to submit a bug report to Apple, I have to understand what the=20= actual problem is. Obviously Jython is able to locate the package and=20 introspect it, proof is the result of the=20 dir("net.sourceforge.spedit.app") that returns the actual content of the=20= package. The problem is that Jython is not able to access the content of=20= this package when using the "." (and also every package that I have=20 defined outside of the jre/lib/ext equivalent on OS X). I suspect a=20 difference in the introspection mechanisms between the Jython attribute=20= access and the dir() function. The problem is that to understand why=20 Jython is unable to access the Application class I need to know how=20 Jython works at its core...maybe some experts could help? Cheers, -- S=E9bastien. |