Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Java-SDO-beta1
-
None
-
Patch Available
Description
There are base.xsd and sample.xsd where sample.xsd imports the base.xsd. When running the codegen tool with and without -javaPackage switch, two different results occur.
With "-javaPackage org.example.sample", the init() of SampleFactoryImpl.java contains -
// Initialize simple dependencies
SDOUtil.registerStaticTypes(SampleFactory.class); ==> Should be SDOUtil.registerStaticTypes(BaseFactory.class);
SDOUtil.registerStaticTypes(SDOFactory.class);
SDOUtil.registerStaticTypes(ModelFactory.class);
Without the switch, the init() contains -
// Initialize simple dependencies
SDOUtil.registerStaticTypes(BaseFactory.class);
SDOUtil.registerStaticTypes(SDOFactory.class);
SDOUtil.registerStaticTypes(ModelFactory.class);