From: Frank W. <fwi...@gm...> - 2007-08-02 17:21:55
|
On 8/1/07, Oti <oh...@gm...> wrote: > A little explanation (let's stick to the swing example): > If a package (javax.swing) is not yet known to the caller's > classloader (Package.getPackages()), and you do a non-explicit import > like: > from javax import swing > import javax.swing > from javax.swing import * > then we humans know that javax.swing is a java package, but jython > does not, and has no way of finding out programmatically. > (Well, I was thinking about making an exception to this rule and > recognizing the core java packages, but am not yet decided if > "deferring the confusion" is really what we want. We would then > recognize non-explicit imports of core packages, but fail on all other > packages). Personally I think doing this would cause more confusion than it would save -- I'd prefer it if we have the same policy regardless of whether a package is "core" to java or not... -Frank |