UIMA
  1. UIMA
  2. UIMA-382

namespace and type name collisions when using JCasGen

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Trivial Trivial
    • Resolution: Unresolved
    • Affects Version/s: 2.1, 2.2, 2.3
    • Fix Version/s: None
    • Component/s: Eclipse plugins, Tools
    • Labels:
      None

      Description

      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.

        Activity

        Hide
        Marshall Schor added a comment -

        defer beyond 2.3.0

        Show
        Marshall Schor added a comment - defer beyond 2.3.0
        Hide
        Marshall Schor added a comment -

        Won't be fixed in time for 2.2

        Show
        Marshall Schor added a comment - Won't be fixed in time for 2.2
        Hide
        Marshall Schor added a comment -

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

        Show
        Marshall Schor added a comment - Good point. I agree it should be a warning - probably when JCasGen is run.
        Hide
        Thilo Goetz added a comment -

        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?

        Show
        Thilo Goetz added a comment - 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?

          People

          • Assignee:
            Unassigned
            Reporter:
            Marshall Schor
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development