You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-dev@ws.apache.org by "Andrew Eberbach (JIRA)" <ji...@apache.org> on 2006/12/13 06:50:22 UTC

[jira] Created: (MUSE-163) Non-primitive types that have a minOccurs greater than 0 need to be initialized in the generated constructor

Non-primitive types that have a minOccurs greater than 0 need to be initialized in the generated constructor
------------------------------------------------------------------------------------------------------------

                 Key: MUSE-163
                 URL: http://issues.apache.org/jira/browse/MUSE-163
             Project: Muse
          Issue Type: Bug
          Components: Tooling - Code Generation
    Affects Versions: 2.1.0
            Reporter: Andrew Eberbach
         Assigned To: Andrew Eberbach
            Priority: Minor
             Fix For: 2.2.0


This manifests itself the most when someone has a String as a property and doesn't give it an initial value in the generated code. The proposed solution is to have an initialize method generated that has a todo and throws a RuntimeException that the user has to make sure that proper initialization is done.

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


[jira] Resolved: (MUSE-163) Non-primitive types that have a minOccurs greater than 0 need to be initialized in the generated constructor

Posted by "Andrew Eberbach (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MUSE-163?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Eberbach resolved MUSE-163.
----------------------------------

    Resolution: Fixed

Added some better messages. This is to help guard against people generating the code, running it and getting a belowMinimum error. This way it'll throw an exception saying that the code needs to be initialized and there are todo's in the code that specify which properties have to be initialized.

> Non-primitive types that have a minOccurs greater than 0 need to be initialized in the generated constructor
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: MUSE-163
>                 URL: https://issues.apache.org/jira/browse/MUSE-163
>             Project: Muse
>          Issue Type: Bug
>          Components: Tooling - Code Generation
>    Affects Versions: 2.1.0
>            Reporter: Andrew Eberbach
>         Assigned To: Andrew Eberbach
>            Priority: Minor
>             Fix For: 2.2.0
>
>
> This manifests itself the most when someone has a String as a property and doesn't give it an initial value in the generated code. The proposed solution is to have an initialize method generated that has a todo and throws a RuntimeException that the user has to make sure that proper initialization is done.

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