Reinhard-Prehofer / legstar

Automatically exported from code.google.com/p/legstar
0 stars 0 forks source link

ODO counter in REDEFINES is not found #186

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. A COBOL copybook such as:

       01 DFHCOMMAREA.      
           03 ALTERNATIVE-A.
               05  ODO-COUNTER       PIC 9(4) COMP.
           03 ALTERNATIVE-B REDEFINES ALTERNATIVE-A.
               05  FILLER            PIC XX.
           03 ODO-ARRAY OCCURS 5 DEPENDING ON ODO-COUNTER.
               05  FILLER            PIC X.

2. Translate to XSD and generate binding classes
3. Run transformers, you get an exception:

com.legstar.coxb.transform.HostTransformException: Cannot locate counter 
ODO-COUNTER
    at com.legstar.coxb.transform.AbstractJavaToHostTransformer.transform(AbstractJavaToHostTransformer.java:204)
    at com.legstar.coxb.transform.AbstractJavaToHostTransformer.transform(AbstractJavaToHostTransformer.java:131)
    at com.legstar.coxb.transform.AbstractTransformers.toHost(AbstractTransformers.java:107)

Original issue reported on code.google.com by fady.mou...@gmail.com on 1 Feb 2015 at 7:12

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r2036.

Original comment by fady.mou...@gmail.com on 13 Feb 2015 at 12:55

GoogleCodeExporter commented 9 years ago

Original comment by fady.mou...@gmail.com on 13 Feb 2015 at 3:35