[
https://issues.jboss.org/browse/DROOLS-660?page=com.atlassian.jira.plugin...
]
chi chi commented on DROOLS-660:
--------------------------------
public Class<?> fastFindClass( final String name ) {
lock.lock();
Class<?> cls = findLoadedClass( name );
if (cls == null) {
final byte[] clazzBytes = this.store.read( convertClassToResourcePath(
name ) );
if (clazzBytes != null) {
String pkgName = name.substring( 0,
name.lastIndexOf( '.' )
);
if ( getPackage( pkgName ) == null ) {
definePackage( pkgName,
"",
"",
"",
"",
"",
"",
null );
}
cls = defineClass( name,
clazzBytes,
0,
clazzBytes.length,
PROTECTION_DOMAIN );
}
if (cls != null) {
resolveClass( cls );
}
}
lock.unlock();
return cls;
}
it that ok? i find the lock has been removed in 6.2.0.Final, is that means 5.6.0Final has
dead lock problem? can i use 5.6.0 in my project?
dead lock in fastFindClass method in PackageClassLoader extends
ClassLoader implements FastClassLoader
-------------------------------------------------------------------------------------------------------
Key: DROOLS-660
URL:
https://issues.jboss.org/browse/DROOLS-660
Project: Drools
Issue Type: Feature Request
Reporter: chi chi
Assignee: Mark Proctor
--
This message was sent by Atlassian JIRA
(v6.3.8#6338)