You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Lahiru Gunathilake (JIRA)" <ji...@apache.org> on 2008/01/04 04:45:34 UTC

[jira] Created: (AXIS2C-868) Function axiom_element_create

Function axiom_element_create
-----------------------------

                 Key: AXIS2C-868
                 URL: https://issues.apache.org/jira/browse/AXIS2C-868
             Project: Axis2-C
          Issue Type: Bug
    Affects Versions: Current (Nightly)
         Environment: Ubuntu 7.04
            Reporter: Lahiru Gunathilake
             Fix For: Current (Nightly)


AXIS2_EXTERN
axiom_element_t* axiom_element_create(    
      const axutil_env_t*   env,
      axiom_node_t*         parent,
      const axis2_char_t*   localname,
      axiom_namespace_t*    ns,
      axiom_node_t**        node)

The axiom_node_t instance node has responsibility for the returned axion_element_t*.  Therefore, calls to axiom_node_free_tree will free this returned element (in addition to all the child nodes of node).  The memory allocated for the return value should not be de-allocated using axiom_element_free in this scenario, since it is internally tied to the node.

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


[jira] Assigned: (AXIS2C-868) Function axiom_element_create[Alastair FETTES]

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

Senaka Fernando reassigned AXIS2C-868:
--------------------------------------

    Assignee: Senaka Fernando

> Function axiom_element_create[Alastair FETTES]
> ----------------------------------------------
>
>                 Key: AXIS2C-868
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-868
>             Project: Axis2-C
>          Issue Type: Bug
>    Affects Versions: Current (Nightly)
>         Environment: Ubuntu 7.04
>            Reporter: Lahiru Gunathilake
>            Assignee: Senaka Fernando
>             Fix For: Current (Nightly)
>
>
> AXIS2_EXTERN
> axiom_element_t* axiom_element_create(    
>       const axutil_env_t*   env,
>       axiom_node_t*         parent,
>       const axis2_char_t*   localname,
>       axiom_namespace_t*    ns,
>       axiom_node_t**        node)
> The axiom_node_t instance node has responsibility for the returned axion_element_t*.  Therefore, calls to axiom_node_free_tree will free this returned element (in addition to all the child nodes of node).  The memory allocated for the return value should not be de-allocated using axiom_element_free in this scenario, since it is internally tied to the node.

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


[jira] Resolved: (AXIS2C-868) Function axiom_element_create[Alastair FETTES]

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

Damitha Kumarage resolved AXIS2C-868.
-------------------------------------

    Resolution: Fixed

This is should be moved to 2.x family as this requires api changes. Also this goes with. Also fixing
https://issues.apache.org/jira/browse/AXIS2C-476?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
which is also defferredd to 2.x will automatically fix this.

> Function axiom_element_create[Alastair FETTES]
> ----------------------------------------------
>
>                 Key: AXIS2C-868
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-868
>             Project: Axis2-C
>          Issue Type: Improvement
>         Environment: Ubuntu 7.04
>            Reporter: Lahiru Gunathilake
>
> AXIS2_EXTERN
> axiom_element_t* axiom_element_create(    
>       const axutil_env_t*   env,
>       axiom_node_t*         parent,
>       const axis2_char_t*   localname,
>       axiom_namespace_t*    ns,
>       axiom_node_t**        node)
> The axiom_node_t instance node has responsibility for the returned axion_element_t*.  Therefore, calls to axiom_node_free_tree will free this returned element (in addition to all the child nodes of node).  The memory allocated for the return value should not be de-allocated using axiom_element_free in this scenario, since it is internally tied to the node.

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


[jira] Updated: (AXIS2C-868) Function axiom_element_create[Alastair FETTES]

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

Senaka Fernando updated AXIS2C-868:
-----------------------------------

    Affects Version/s:     (was: Current (Nightly))
        Fix Version/s:     (was: Current (Nightly))
             Assignee:     (was: Senaka Fernando)
           Issue Type: Improvement  (was: Bug)

This is an improvement due in a 2.x.x release.

Regards,
Senaka

> Function axiom_element_create[Alastair FETTES]
> ----------------------------------------------
>
>                 Key: AXIS2C-868
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-868
>             Project: Axis2-C
>          Issue Type: Improvement
>         Environment: Ubuntu 7.04
>            Reporter: Lahiru Gunathilake
>
> AXIS2_EXTERN
> axiom_element_t* axiom_element_create(    
>       const axutil_env_t*   env,
>       axiom_node_t*         parent,
>       const axis2_char_t*   localname,
>       axiom_namespace_t*    ns,
>       axiom_node_t**        node)
> The axiom_node_t instance node has responsibility for the returned axion_element_t*.  Therefore, calls to axiom_node_free_tree will free this returned element (in addition to all the child nodes of node).  The memory allocated for the return value should not be de-allocated using axiom_element_free in this scenario, since it is internally tied to the node.

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


[jira] Updated: (AXIS2C-868) Function axiom_element_create[Alastair FETTES]

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

Lahiru Gunathilake updated AXIS2C-868:
--------------------------------------

    Summary: Function axiom_element_create[Alastair FETTES]  (was: Function axiom_element_create)

> Function axiom_element_create[Alastair FETTES]
> ----------------------------------------------
>
>                 Key: AXIS2C-868
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-868
>             Project: Axis2-C
>          Issue Type: Bug
>    Affects Versions: Current (Nightly)
>         Environment: Ubuntu 7.04
>            Reporter: Lahiru Gunathilake
>             Fix For: Current (Nightly)
>
>
> AXIS2_EXTERN
> axiom_element_t* axiom_element_create(    
>       const axutil_env_t*   env,
>       axiom_node_t*         parent,
>       const axis2_char_t*   localname,
>       axiom_namespace_t*    ns,
>       axiom_node_t**        node)
> The axiom_node_t instance node has responsibility for the returned axion_element_t*.  Therefore, calls to axiom_node_free_tree will free this returned element (in addition to all the child nodes of node).  The memory allocated for the return value should not be de-allocated using axiom_element_free in this scenario, since it is internally tied to the node.

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


[jira] Commented: (AXIS2C-868) Function axiom_element_create[Alastair FETTES]

Posted by "Senaka Fernando (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2C-868?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12555869#action_12555869 ] 

Senaka Fernando commented on AXIS2C-868:
----------------------------------------

Hi there,

The user is not supposed to call the axiom_element_free() method at the moment. Doing so, will lead him into trouble. This method along with other similar methods in axiom_comment etc., should not be exposed to a user. It doesn't make sense to document this. We should be simply hiding this method. However, as this requires an api-level change, this can't be fixed until a 2.x.x release. Alternate workarounds may be possible. But, there is a concern on how we could improve the inheritance model with respect to nodes, elements etc. with a 2.x.x release, in which case, temporary fixes wouldn't make any sense.

Please correct me if I have made a mistake.

Regards,
Senaka

> Function axiom_element_create[Alastair FETTES]
> ----------------------------------------------
>
>                 Key: AXIS2C-868
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-868
>             Project: Axis2-C
>          Issue Type: Bug
>    Affects Versions: Current (Nightly)
>         Environment: Ubuntu 7.04
>            Reporter: Lahiru Gunathilake
>             Fix For: Current (Nightly)
>
>
> AXIS2_EXTERN
> axiom_element_t* axiom_element_create(    
>       const axutil_env_t*   env,
>       axiom_node_t*         parent,
>       const axis2_char_t*   localname,
>       axiom_namespace_t*    ns,
>       axiom_node_t**        node)
> The axiom_node_t instance node has responsibility for the returned axion_element_t*.  Therefore, calls to axiom_node_free_tree will free this returned element (in addition to all the child nodes of node).  The memory allocated for the return value should not be de-allocated using axiom_element_free in this scenario, since it is internally tied to the node.

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