Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Blocker
-
Resolution: Unresolved
-
Affects Version/s: 1.1.2.1
-
Fix Version/s: None
-
Component/s: XML code generator
-
Labels:None
-
Environment:Eclipse 3.2.2
Castor 1.1.2.1
Java 1.4.2_14
-
Testcase included:yes
-
Number of attachments :2
Description
have an Xsd where some field restriction is based on regular expression that uses special character such as "([À-ža-zA-Z\- '])*"
In this case in package descriptors the objectDescriptors contain the next line
typeValidator.addPattern("([À-ža-zA-Z\\- '])*");
where the pattern is not the same.
What I wrong?
Thank's in advance
In the attached file there are two sample.
The ant castor_xml_saia_build.1.1.xml contains two targets: GeneratorTestCastor and GeneratorRichiesta
The first is a small sample
The second is a complex sample that has another problem. With the version 0.9.5.4 the generated class was compilable but with that new version none.
With the old version there where problem with collision but source code was complilable.
Thank's in advance
-
Hide
- exsample2.zip
- 16/Dec/07 2:32 AM
- 1 kB
- Raffaele Fabbri
- Download Zip
-
Hide
- issueCastor.zip
- 14/Dec/07 4:40 AM
- 37 kB
- Raffaele Fabbri
-
- testCastor/.classpath 0.6 kB
- testCastor/.project 0.4 kB
- testCastor/.../castor_xml_saia_build.1.1.xml 3 kB
- testCastor/castor/.../messages.properties 21 kB
- testCastor/.../binding.generation.properties 0.4 kB
- testCastor/.../castorbuilder.properties 5 kB
- testCastor/castor/.../castor.properties 9 kB
- testCastor/castor/.../SimpleTypes.properties 7 kB
- testCastor/.../SimpleTypesMapping.properties 2 kB
- testCastor/Readme 0.3 kB
- testCastor/src/it/.../prova/.castor.cdr 0.8 kB
- testCastor/src/.../Prova1Descriptor.java 4 kB
- testCastor/src/.../Prova2Descriptor.java 4 kB
- testCastor/src/.../ProvaDescriptor.java 4 kB
- testCastor/src/.../TipoProva1Descriptor.java 8 kB
- testCastor/src/.../TipoProva2Descriptor.java 11 kB
- testCastor/src/.../TipoProvaDescriptor.java 7 kB
- testCastor/src/it/.../prova/Prova.java 3 kB
- testCastor/src/it/.../prova/Prova1.java 3 kB
- testCastor/src/it/.../prova/Prova2.java 3 kB
- testCastor/src/it/.../prova/TipoProva.java 5 kB
- testCastor/src/it/.../prova/TipoProva1.java 12 kB
- testCastor/src/it/.../prova/TipoProva2.java 17 kB
- testCastor/xsd/prova.xsd 2 kB