Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 1.1 M2
-
Fix Version/s: 1.1 M3
-
Component/s: None
-
Labels:None
-
Environment:Solaris
-
Number of attachments :
Description
Import lines are not being generated properly in the descriptor classes.
For example, the correct import line should be something like:
import com.gs.fw.odyssey.fpml.v4_0.descriptors.PlantagenetTypeDescriptor;
But instead it generates this:
import com.gs.fw.odyssey.fpml.v4_0descriptorsPlantagenetTypeDescriptor;
In addition, for the class definition it should be this:
public class PlantagenetDescriptor extends com.gs.fw.odyssey.fpml.v4_0.descriptors.PlantagenetTypeDescriptor {}
But instead it generates this:
public class PlantagenetDescriptor extends com.gs.fw.odyssey.fpml.v4_0descriptorsPlantagenetTypeDescriptor {}
I've attached the schema file I used and a sample generated class.
Problem identified and fixed. I also updated the CTF to add the capability to generate code into a package. (Previously, the CTF only generated code into the default package.)
After this delivery, the CTF will run using code generated from this fixed version of Castor.
(For those reading this who are not Castor committors, we do not currently generate code for our schemas for each release, but only when the schema in question changes. This will some day change and we'll generate code for almost every schema freshly for each build.)