Issue222864

classification
Title: importing java packages
Type: Severity: normal
Components: None Versions:
Milestone:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: bckfnn, pedronis
Priority: low Keywords:

Created on 2000-11-18.19:41:34 by bckfnn, last changed 2000-11-20.15:54:09 by pedronis.

Messages
msg179 (view) Author: Finn Bock (bckfnn) Date: 2000-11-18.19:41:34
The statement

from com.foo.bar import *

(where com.foo.bar is a Java package) works only if the package is stored in a
jar file. If the package is in a directory you must explicitly import each
symbol, e.g.

from com.foo.bar import Baz

This caused me a lot of confusion, so if this is the way it is intended to work
the documention should make it clear.

Note that from the standpoint of someone writing test scripts for Java code it
would be highly desireable for import * to work properly.
msg180 (view) Author: Samuele Pedroni (pedronis) Date: 2000-11-20.15:54:09
new load design treats pkgs as unions of dir and jars contents,
from import * retrieve everything from dirs and jars.
History
Date User Action Args
2000-11-18 19:41:34bckfnncreate