Hi,

I have following lines of code that work fine against castor-0.9.4.3 version.

 

import org.exolab.castor.mapping.Mapping;

import org.exolab.castor.mapping.MappingException;

/** This method loads the Castor Mapping file for use with incoming

* and outgoing transactions.

*/

private void LoadMessageMapping() throws IOException, MappingException

{

messageMapping = new Mapping();

messageMapping.setAllowRedefinitions(true);

messageMapping.setBaseURL(this.sCfgMessageMappingBaseDir);

messageMapping.loadMapping(this.sCfgMessageMappingLoc);

genLogger.log(VISLogger.INFO, "Loaded message mapping file: " + this.sCfgMessageMappingLoc);

}

 

On updating the castor version to castor-1.1, I see following error message :

"The method setAllowRedefinitions(boolean) is undefined for the type Mapping".

 

The method "setAllowRedefinitions(boolean)" no longer exists for class Mapping in castor-1.1 version.

Here is this method's brief explanation from castor-0.9.4.3 version documentation:

setAllowRedefinitions(boolean) - Method in class org.exolab.castor.mapping.Mapping Enables or disables the ability to allow the redefinition of class mappings.

My Question: When I use Mapping class from org.exolab.castor.mapping package from castor-1.1 version, Is their any new method that replaces functionality of setAllowRedefinitions method that existed in castor-0.9.4.3 version ?

Observation: Method setAllowRedefinitions(boolean allow) does exist for class MappingUnmarshaller in package org.castor.mapping.

Any help/hints will be appreciated.

Thanks,

Bhavna Passan




PC Magazine’s 2007 editors’ choice for best Web mail—award-winning Windows Live Hotmail. --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email

Reply via email to