You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Mike Barrett (JIRA)" <xm...@xml.apache.org> on 2006/04/20 18:18:06 UTC

[jira] Created: (XMLBEANS-268) Collision detected while generating classnames for (except-case) identical schema names

Collision detected while generating classnames for (except-case) identical schema names
---------------------------------------------------------------------------------------

         Key: XMLBEANS-268
         URL: http://issues.apache.org/jira/browse/XMLBEANS-268
     Project: XMLBeans
        Type: Bug

    Versions: Version 2    
 Environment: unix
    Reporter: Mike Barrett
    Priority: Minor


We have two schemas: 
slideshow.xsd and slideShow.xsd

Which have identical names, except case. The issue is that it seems that this causes a name collision, and causes the generated class name to have a number inserted:
slideshow.xsd --> SlideshowDocumentImpl
slideShow.xsd --> SlideShowDocument2Impl

now if you remove the '2' from the slideShow class, you still have two unique java class names. Therefore, I don't see the need to append a number to the generated name.

-- 
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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Commented: (XMLBEANS-268) Collision detected while generating classnames for (except-case) identical schema names

Posted by "Mike Barrett (JIRA)" <xm...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XMLBEANS-268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12772640#action_12772640 ] 

Mike Barrett commented on XMLBEANS-268:
---------------------------------------

Wing Yew Poon -

Any reason for the won't fix?

> Collision detected while generating classnames for (except-case) identical schema names
> ---------------------------------------------------------------------------------------
>
>                 Key: XMLBEANS-268
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-268
>             Project: XMLBeans
>          Issue Type: Bug
>    Affects Versions: Version 2
>         Environment: unix
>            Reporter: Mike Barrett
>            Priority: Minor
>
> We have two schemas: 
> slideshow.xsd and slideShow.xsd
> Which have identical names, except case. The issue is that it seems that this causes a name collision, and causes the generated class name to have a number inserted:
> slideshow.xsd --> SlideshowDocumentImpl
> slideShow.xsd --> SlideShowDocument2Impl
> now if you remove the '2' from the slideShow class, you still have two unique java class names. Therefore, I don't see the need to append a number to the generated name.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Commented: (XMLBEANS-268) Collision detected while generating classnames for (except-case) identical schema names

Posted by "Cezar Andrei (JIRA)" <xm...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XMLBEANS-268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12772777#action_12772777 ] 

Cezar Andrei commented on XMLBEANS-268:
---------------------------------------

Just to be clear: there are 2 problems here:

1. if target namespace differs only in caps, on Windows the generated resources will collide and there is no workaround for this at this point.
   - a potential fix should change the encoding algorithm from uri to dir name, which will break backwards compatibility so the code should be enabled only through a system property

2. and the generation of the same class/interface name, which is by design and the user should use a .xsdconfig file to change the package name or the class/interface name

I reopened the issue only for tracking problem 1.

> Collision detected while generating classnames for (except-case) identical schema names
> ---------------------------------------------------------------------------------------
>
>                 Key: XMLBEANS-268
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-268
>             Project: XMLBeans
>          Issue Type: Bug
>    Affects Versions: Version 2
>         Environment: unix
>            Reporter: Mike Barrett
>            Priority: Minor
>
> We have two schemas: 
> slideshow.xsd and slideShow.xsd
> Which have identical names, except case. The issue is that it seems that this causes a name collision, and causes the generated class name to have a number inserted:
> slideshow.xsd --> SlideshowDocumentImpl
> slideShow.xsd --> SlideShowDocument2Impl
> now if you remove the '2' from the slideShow class, you still have two unique java class names. Therefore, I don't see the need to append a number to the generated name.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Reopened: (XMLBEANS-268) Collision detected while generating classnames for (except-case) identical schema names

Posted by "Cezar Andrei (JIRA)" <xm...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XMLBEANS-268?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Cezar Andrei reopened XMLBEANS-268:
-----------------------------------


I would leave this bug open, because this is really a problem on windows.

> Collision detected while generating classnames for (except-case) identical schema names
> ---------------------------------------------------------------------------------------
>
>                 Key: XMLBEANS-268
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-268
>             Project: XMLBeans
>          Issue Type: Bug
>    Affects Versions: Version 2
>         Environment: unix
>            Reporter: Mike Barrett
>            Priority: Minor
>
> We have two schemas: 
> slideshow.xsd and slideShow.xsd
> Which have identical names, except case. The issue is that it seems that this causes a name collision, and causes the generated class name to have a number inserted:
> slideshow.xsd --> SlideshowDocumentImpl
> slideShow.xsd --> SlideShowDocument2Impl
> now if you remove the '2' from the slideShow class, you still have two unique java class names. Therefore, I don't see the need to append a number to the generated name.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Resolved: (XMLBEANS-268) Collision detected while generating classnames for (except-case) identical schema names

Posted by "Wing Yew Poon (JIRA)" <xm...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XMLBEANS-268?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wing Yew Poon resolved XMLBEANS-268.
------------------------------------

    Resolution: Won't Fix

> Collision detected while generating classnames for (except-case) identical schema names
> ---------------------------------------------------------------------------------------
>
>                 Key: XMLBEANS-268
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-268
>             Project: XMLBeans
>          Issue Type: Bug
>    Affects Versions: Version 2
>         Environment: unix
>            Reporter: Mike Barrett
>            Priority: Minor
>
> We have two schemas: 
> slideshow.xsd and slideShow.xsd
> Which have identical names, except case. The issue is that it seems that this causes a name collision, and causes the generated class name to have a number inserted:
> slideshow.xsd --> SlideshowDocumentImpl
> slideShow.xsd --> SlideShowDocument2Impl
> now if you remove the '2' from the slideShow class, you still have two unique java class names. Therefore, I don't see the need to append a number to the generated name.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Commented: (XMLBEANS-268) Collision detected while generating classnames for (except-case) identical schema names

Posted by "Wing Yew Poon (JIRA)" <xm...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XMLBEANS-268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12772648#action_12772648 ] 

Wing Yew Poon commented on XMLBEANS-268:
----------------------------------------

Mike,
a number of fixes have gone into the trunk since XMLBeans 2.4.0 was released more than a year ago, and the currently active committers are planning to make a new release in the immediate future. We are reviewing all the currently open issues and prioritizing what else we may try to fix. Our resources are very limited and we are all working on a purely voluntary basis. At this time, we do not expect to revisit the name-mangling algorithm used by XMLBeans, which has been in use for a long time.
- Wing Yew


> Collision detected while generating classnames for (except-case) identical schema names
> ---------------------------------------------------------------------------------------
>
>                 Key: XMLBEANS-268
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-268
>             Project: XMLBeans
>          Issue Type: Bug
>    Affects Versions: Version 2
>         Environment: unix
>            Reporter: Mike Barrett
>            Priority: Minor
>
> We have two schemas: 
> slideshow.xsd and slideShow.xsd
> Which have identical names, except case. The issue is that it seems that this causes a name collision, and causes the generated class name to have a number inserted:
> slideshow.xsd --> SlideshowDocumentImpl
> slideShow.xsd --> SlideShowDocument2Impl
> now if you remove the '2' from the slideShow class, you still have two unique java class names. Therefore, I don't see the need to append a number to the generated name.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Commented: (XMLBEANS-268) Collision detected while generating classnames for (except-case) identical schema names

Posted by "Mike Barrett (JIRA)" <xm...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XMLBEANS-268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12772649#action_12772649 ] 

Mike Barrett commented on XMLBEANS-268:
---------------------------------------

Thanks for the response - makes sense as it could be considered a "feature" at this point. Keep up the good work!

> Collision detected while generating classnames for (except-case) identical schema names
> ---------------------------------------------------------------------------------------
>
>                 Key: XMLBEANS-268
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-268
>             Project: XMLBeans
>          Issue Type: Bug
>    Affects Versions: Version 2
>         Environment: unix
>            Reporter: Mike Barrett
>            Priority: Minor
>
> We have two schemas: 
> slideshow.xsd and slideShow.xsd
> Which have identical names, except case. The issue is that it seems that this causes a name collision, and causes the generated class name to have a number inserted:
> slideshow.xsd --> SlideshowDocumentImpl
> slideShow.xsd --> SlideShowDocument2Impl
> now if you remove the '2' from the slideShow class, you still have two unique java class names. Therefore, I don't see the need to append a number to the generated name.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org