Hi to everyone.
I am using Castor for about three hours, and detected two small bugs:
1) The Source Generator generates code that can�t be compiled when an
element of the schema file is named "field". The problem is in the
generated class "FieldDescriptor", it has an import (import
org.exolab.castor.mapping.FieldDescriptor) that collides with the local
class name "FieldDescriptor". this can be solved commenting the ofending
import.
2)When Unmarshalling a stream using one of the generated Classes, an
AccessControlException is thrown accesing the java.home system property.
I�m using Castor inside a secured Tomcat server, so I fixed this adding
to the method "loadProperties" in the class named
"org.exolab.castor.util.Configuration" to ignore the exception
try {
file = new File( System.getProperty( "java.home" ), "lib" );
file = new File( file, fileName );
if ( file.exists() ) {
properties = new Properties( properties );
properties.load( new FileInputStream( file ) );
}
} catch ( IOException except ) {
// Do nothing
} catch ( AccessControlException except ) {
//AccessControl patch added
// Do nothing
}
--
Robert Marcano (office: [EMAIL PROTECTED], personal: [EMAIL PROTECTED])
System Architect
http://www.marcanoonline.com/About_me/about_me.html
aol/netscape screen id: robmv
jabber id: [EMAIL PROTECTED]
msn messenger id: [EMAIL PROTECTED]
icq id: 101913663
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev