You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Marshall Schor (JIRA)" <ui...@incubator.apache.org> on 2007/04/20 22:21:15 UTC

[jira] Created: (UIMA-382) namespace and type name collisions when using JCasGen

namespace and type name collisions when using JCasGen
-----------------------------------------------------

                 Key: UIMA-382
                 URL: https://issues.apache.org/jira/browse/UIMA-382
             Project: UIMA
          Issue Type: Improvement
          Components: Eclipse plugins, Tools
    Affects Versions: 2.1
            Reporter: Marshall Schor
            Priority: Trivial


Component Descriptor Editor (CDE) allows creation of CAS Types where the fully qualified type is the same as some package name in the "classpath", or where the fully qualified type includes a namespace which is already a class name in the classpath.  This causes a "collision" when the JCas is generated.   

There is also a possibility for ambiguity for CAS type names that end in _Type.  This should be disallowed.

These checks may want to be put into the uima core, not just into the CDE.

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


[jira] Commented: (UIMA-382) namespace and type name collisions when using JCasGen

Posted by "Thilo Goetz (JIRA)" <ui...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12490502 ] 

Thilo Goetz commented on UIMA-382:
----------------------------------

Hm, not everybody uses the JCas, and people do use the same package as, for example, their annotator on purpose.  So maybe we could give a warning instead of completely disallowing this?  Make it a best practice?


> namespace and type name collisions when using JCasGen
> -----------------------------------------------------
>
>                 Key: UIMA-382
>                 URL: https://issues.apache.org/jira/browse/UIMA-382
>             Project: UIMA
>          Issue Type: Improvement
>          Components: Eclipse plugins, Tools
>    Affects Versions: 2.1
>            Reporter: Marshall Schor
>            Priority: Trivial
>
> Component Descriptor Editor (CDE) allows creation of CAS Types where the fully qualified type is the same as some package name in the "classpath", or where the fully qualified type includes a namespace which is already a class name in the classpath.  This causes a "collision" when the JCas is generated.   
> There is also a possibility for ambiguity for CAS type names that end in _Type.  This should be disallowed.
> These checks may want to be put into the uima core, not just into the CDE.

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


[jira] Updated: (UIMA-382) namespace and type name collisions when using JCasGen

Posted by "Marshall Schor (JIRA)" <ui...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-382?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marshall Schor updated UIMA-382:
--------------------------------


Won't be fixed in time for 2.2

> namespace and type name collisions when using JCasGen
> -----------------------------------------------------
>
>                 Key: UIMA-382
>                 URL: https://issues.apache.org/jira/browse/UIMA-382
>             Project: UIMA
>          Issue Type: Improvement
>          Components: Eclipse plugins, Tools
>    Affects Versions: 2.1
>            Reporter: Marshall Schor
>            Priority: Trivial
>             Fix For: 2.2
>
>
> Component Descriptor Editor (CDE) allows creation of CAS Types where the fully qualified type is the same as some package name in the "classpath", or where the fully qualified type includes a namespace which is already a class name in the classpath.  This causes a "collision" when the JCas is generated.   
> There is also a possibility for ambiguity for CAS type names that end in _Type.  This should be disallowed.
> These checks may want to be put into the uima core, not just into the CDE.

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


[jira] Commented: (UIMA-382) namespace and type name collisions when using JCasGen

Posted by "Marshall Schor (JIRA)" <ui...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12490675 ] 

Marshall Schor commented on UIMA-382:
-------------------------------------

Good point.  I agree it should be a warning - probably when JCasGen is run.

> namespace and type name collisions when using JCasGen
> -----------------------------------------------------
>
>                 Key: UIMA-382
>                 URL: https://issues.apache.org/jira/browse/UIMA-382
>             Project: UIMA
>          Issue Type: Improvement
>          Components: Eclipse plugins, Tools
>    Affects Versions: 2.1
>            Reporter: Marshall Schor
>            Priority: Trivial
>
> Component Descriptor Editor (CDE) allows creation of CAS Types where the fully qualified type is the same as some package name in the "classpath", or where the fully qualified type includes a namespace which is already a class name in the classpath.  This causes a "collision" when the JCas is generated.   
> There is also a possibility for ambiguity for CAS type names that end in _Type.  This should be disallowed.
> These checks may want to be put into the uima core, not just into the CDE.

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


[jira] Updated: (UIMA-382) namespace and type name collisions when using JCasGen

Posted by "Marshall Schor (JIRA)" <ui...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-382?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marshall Schor updated UIMA-382:
--------------------------------

    Fix Version/s: 2.2

> namespace and type name collisions when using JCasGen
> -----------------------------------------------------
>
>                 Key: UIMA-382
>                 URL: https://issues.apache.org/jira/browse/UIMA-382
>             Project: UIMA
>          Issue Type: Improvement
>          Components: Eclipse plugins, Tools
>    Affects Versions: 2.1
>            Reporter: Marshall Schor
>            Priority: Trivial
>             Fix For: 2.2
>
>
> Component Descriptor Editor (CDE) allows creation of CAS Types where the fully qualified type is the same as some package name in the "classpath", or where the fully qualified type includes a namespace which is already a class name in the classpath.  This causes a "collision" when the JCas is generated.   
> There is also a possibility for ambiguity for CAS type names that end in _Type.  This should be disallowed.
> These checks may want to be put into the uima core, not just into the CDE.

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


[jira] Updated: (UIMA-382) namespace and type name collisions when using JCasGen

Posted by "Marshall Schor (JIRA)" <ui...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-382?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marshall Schor updated UIMA-382:
--------------------------------

    Affects Version/s: 2.3

defer beyond 2.3.0

> namespace and type name collisions when using JCasGen
> -----------------------------------------------------
>
>                 Key: UIMA-382
>                 URL: https://issues.apache.org/jira/browse/UIMA-382
>             Project: UIMA
>          Issue Type: Improvement
>          Components: Eclipse plugins, Tools
>    Affects Versions: 2.1, 2.2, 2.3
>            Reporter: Marshall Schor
>            Priority: Trivial
>
> Component Descriptor Editor (CDE) allows creation of CAS Types where the fully qualified type is the same as some package name in the "classpath", or where the fully qualified type includes a namespace which is already a class name in the classpath.  This causes a "collision" when the JCas is generated.   
> There is also a possibility for ambiguity for CAS type names that end in _Type.  This should be disallowed.
> These checks may want to be put into the uima core, not just into the CDE.

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


[jira] Updated: (UIMA-382) namespace and type name collisions when using JCasGen

Posted by "Marshall Schor (JIRA)" <ui...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-382?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marshall Schor updated UIMA-382:
--------------------------------

        Fix Version/s:     (was: 2.2)
    Affects Version/s: 2.2

> namespace and type name collisions when using JCasGen
> -----------------------------------------------------
>
>                 Key: UIMA-382
>                 URL: https://issues.apache.org/jira/browse/UIMA-382
>             Project: UIMA
>          Issue Type: Improvement
>          Components: Eclipse plugins, Tools
>    Affects Versions: 2.1, 2.2
>            Reporter: Marshall Schor
>            Priority: Trivial
>
> Component Descriptor Editor (CDE) allows creation of CAS Types where the fully qualified type is the same as some package name in the "classpath", or where the fully qualified type includes a namespace which is already a class name in the classpath.  This causes a "collision" when the JCas is generated.   
> There is also a possibility for ambiguity for CAS type names that end in _Type.  This should be disallowed.
> These checks may want to be put into the uima core, not just into the CDE.

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