[ http://issues.apache.org/jira/browse/JAXME-52?page=comments#action_65001 ] Nacho G. Mac Dowell commented on JAXME-52: ------------------------------------------
Hi, are you using Windows? IMO this is a platform dependent issue. I'll try to explain what it's going on: JaxMe is supposed to generate four interfaces for you: CARD CARDType CARDTYPE CARDTYPEType The thing is that the second and third interface have the same name with different case. While this is legal in Java, Windows will not be able to generate both files. I would think this is a "Won't fix" but it would be nice if it was documented. I'll do that sooner than later. It took me some time to realize what was going on. It'd be a great step forward for Windows to be able to handle this type of issues (which I've come across in different projects), but I suppose a whole new file system would be needed. AFAIK this doesn't seem to be an issue for Microsoft. BTW I came across another (very) minor bug in JS. On JavaQNameImpl caching is done via put(value, key) instead of put(key, value). I'll check that in. Best regards, Nacho > problem with element name that ends with TYPE string? > ----------------------------------------------------- > > Key: JAXME-52 > URL: http://issues.apache.org/jira/browse/JAXME-52 > Project: JaxMe > Type: Bug > Environment: Windows2000 SP4, jaxme 0.3.1, j2re 1.4.2_02 > Reporter: HO CHEE YONG > Priority: Minor > > When I generate Java Code with the my schema (which contains 2 element card > and cardtype), I get CARD.java, CARDType.java and CARDTYPEType.java files > generated by the jaxme binding compiler. But in the CARDType.java, I actually > get 'public interface CARDTYPE ' and not 'public interface CARDType '. Is > jaxme has problem with element that ends with 'TYPE' string. > my schema: > <?xml version="1.0" encoding="UTF-8" standalone="yes"?> > <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> > <xs:element name="CARDTYPE"> > <xs:complexType> > <xs:attribute name="ID" type="xs:string" use="required" > /> > <xs:attribute name="NAME" type="xs:string" > use="optional" /> > </xs:complexType> > </xs:element> > <xs:element name="CARD"> > <xs:complexType> > <xs:sequence> > <xs:element ref="CARDTYPE" minOccurs="0" /> > </xs:sequence> > <xs:attribute name="FULLNAME" type="xs:string" > use="optional" /> > <xs:attribute name="FSNAME" type="xs:string" > use="optional" /> > <xs:attribute name="NAME" type="xs:string" > use="required" /> > </xs:complexType> > </xs:element> > </xs:schema> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
