Details
-
Type:
Bug
-
Status:
Reopened
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: 1.3.4
-
Component/s: XML code generator
-
Labels:None
-
Testcase included:yes
-
Number of attachments :
Description
Using snapshot 1.1.1-20070329.084439-9.
I have a simple test case with two schemas, where one imports the other, and references an element defined in that schema. When I compile the code, I see the following exception:
-----------------------
.../wamu/xmlbinding/xx/descriptors/FooDescriptor.java:74: cannot resolve symbol
symbol : class AccountProfile
location: class wamu.xmlbinding.xx.descriptors.FooDescriptor
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(AccountProfile.class, "_accountProfile", "AccountProfile", org.exolab.castor.xml.NodeType.Element);
-----------------------
This compile error is happening because the reference of "AccountProfile.class" should be "wamu.xmlbinding.xx.AccountProfile.class". The class file exists, but it's not in the "descriptors" package, it's in the parent package.
Issue Links
- is depended upon by
-
CASTOR-1965
Subtype overrides unmarshal with illegal override
-
- relates to
-
CASTOR-1986
castor fails to include import statement for externally defined types
-
-
CASTOR-1864
Enumeration classes generated without base package
-
Activity
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Werner Guttmann [ wguttmn ] |
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Fix Version/s | 1.1.1 [ 13080 ] | |
| Resolution | Won't Fix [ 2 ] |
| Attachment | castorbug-nsmap.zip [ 26839 ] |
| Attachment | castorbugjunit.zip [ 26890 ] |
| Status | Resolved [ 5 ] | Closed [ 6 ] |
| Link | This issue relates to CASTOR-1864 [ CASTOR-1864 ] |
| Resolution | Won't Fix [ 2 ] | |
| Status | Closed [ 6 ] | Reopened [ 4 ] |
| Fix Version/s | 1.1.1 [ 13080 ] | |
| Fix Version/s | 1.1.2 [ 13440 ] |
| Attachment | patch.c1934.20070430.txt [ 27073 ] |
| Link |
This issue is depended upon by |
| Link | This issue relates to CASTOR-1986 [ CASTOR-1986 ] |
| Fix Version/s | 1.1.2 [ 13559 ] | |
| Fix Version/s | 1.1.3 [ 13440 ] |
| Fix Version/s | 1.1.2 [ 13440 ] | |
| Fix Version/s | 1.1.3 [ 13559 ] |
| Fix Version/s | 1.1.2 [ 13440 ] | |
| Fix Version/s | 1.1.3 [ 13559 ] |
| Fix Version/s | 1.2.1 [ 14004 ] | |
| Fix Version/s | 1.2 [ 13559 ] |
| Fix Version/s | 1.3.2 [ 13817 ] | |
| Fix Version/s | 1.3.1 [ 14004 ] |
| Fix Version/s | 1.3.3 [ 17192 ] | |
| Fix Version/s | 1.3.2 [ 13817 ] |
Can you - for a second - turn off automatic naming collision resolution, and see whether the generated code compiles at all ?