Message2131
Logged In: YES
user_id=105844
OK, I admit this is a fragile patch. As Samuele said: it is
an idea to be worked over.
After many tests the following code seems to be stable for
me in Jython 21 (if I only use java imports of the form:
from my.package import oneClass). Same place, same method:
if ( names != null ) {
if ( names.length == 1 && asnames == null ) {
// this is a candidate for simple java class import
String packageName = mod;
String fullClassName = packageName + "." + names[0];
try {
Class.forName( fullClassName );
PySystemState.add_package( packageName );
} catch( Throwable t ) {}
}
}
Please apologize for the confusion!
Best wishes,
Oti.
|
|
Date |
User |
Action |
Args |
2008-02-20 17:18:15 | admin | link | issue461151 messages |
2008-02-20 17:18:15 | admin | create | |
|