XMLBeans
  1. XMLBeans
  2. XMLBEANS-282

When a schema is too deep, the generated interface names will become too long on windows

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: Version 2.1
    • Fix Version/s: unspecified
    • Component/s: None
    • Labels:
      None
    • Environment:
      windows xp

      Description

      We have quite deep schema structures and therefore the creted filenames for interface classes will exceed the 256 char limit on filenames on windows.
      Is it possible to add a switch to the generatir that generates all interfaces as normal and not inner interfaces?

      With such a switch the issue would go away completely and we would not have to resort to rewriting the xsd or mangle our classnames by using .XSDCONFIG to rename the classnames.

        Activity

        Hide
        Radu Preotiuc-Pietro added a comment -

        Probably not immediately. What I did add is a new option to .xsdconfig to enhance the name-mapping capability so you are pretty much guaranteed that with the right configuration file (.xsdconfig) you can get around this problem (see XMLBEANS-253).
        JAXB also generates inner classes, I don't think there is a significant difference between the two in this area.

        Show
        Radu Preotiuc-Pietro added a comment - Probably not immediately. What I did add is a new option to .xsdconfig to enhance the name-mapping capability so you are pretty much guaranteed that with the right configuration file (.xsdconfig) you can get around this problem (see XMLBEANS-253 ). JAXB also generates inner classes, I don't think there is a significant difference between the two in this area.
        Hide
        Simon File added a comment -

        I am getting the same issue on v2.3 ... again with a deeply nested schema on Windows XP. This is a show stopper for me ... is this going to be fixed? JAXB xjc works fine.

        Show
        Simon File added a comment - I am getting the same issue on v2.3 ... again with a deeply nested schema on Windows XP. This is a show stopper for me ... is this going to be fixed? JAXB xjc works fine.
        Hide
        Cezar Andrei added a comment -

        Workaround: use .xsdconfig file to

        • shorten the package name
        • shorten the top level class name

        To Do: Give a better error message.

        Show
        Cezar Andrei added a comment - Workaround: use .xsdconfig file to shorten the package name shorten the top level class name To Do: Give a better error message.
        Hide
        Radu Preotiuc-Pietro added a comment -

        Looks like people are htting this...

        "Sent: Tuesday, September 26, 2006 11:37 AM
        Subject: XMLBeans generated inner class names too long for Windows platforms.

        I've run into the problem with XMLBeans generating names that are too long for Windows due to a deep schema. From my google searches, I've seen at least three posts with questions about it, but no replies. I need to find out if there are any plans to fix this or if there is something already in place. If there are plans, is there a development version out there can be tested with?"

        Show
        Radu Preotiuc-Pietro added a comment - Looks like people are htting this... "Sent: Tuesday, September 26, 2006 11:37 AM Subject: XMLBeans generated inner class names too long for Windows platforms. I've run into the problem with XMLBeans generating names that are too long for Windows due to a deep schema. From my google searches, I've seen at least three posts with questions about it, but no replies. I need to find out if there are any plans to fix this or if there is something already in place. If there are plans, is there a development version out there can be tested with?"
        Hide
        Morten Wilken added a comment -

        Just to clarify, what i suggest is to use package names as the hierachical unit instead of nested classes.

        Show
        Morten Wilken added a comment - Just to clarify, what i suggest is to use package names as the hierachical unit instead of nested classes.

          People

          • Assignee:
            Unassigned
            Reporter:
            Morten Wilken
          • Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:

              Development