You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Michele Mazzucco (JIRA)" <ji...@apache.org> on 2007/04/03 15:55:33 UTC

[jira] Created: (AXIS2-2462) Counter class is messy

Counter class is messy
----------------------

                 Key: AXIS2-2462
                 URL: https://issues.apache.org/jira/browse/AXIS2-2462
             Project: Axis 2.0 (Axis2)
          Issue Type: Improvement
          Components: kernel
    Affects Versions: nightly
         Environment: all
            Reporter: Michele Mazzucco


The org.apache.axis2.util.Counter class is messy:
1 - The use of reflection is not needed and it's indeed dangerous since errors happen only at run time
2 - There's too much synchronization



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


[jira] Updated: (AXIS2-2462) Counter class is messy

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

Michele Mazzucco updated AXIS2-2462:
------------------------------------

    Attachment: Counter.patch

Please find attached the patch to fix the issue.
Since this counter is used only when anonymous services are created, the added overhead is minimum (and is indeed lower than the original version, which uses reflection + synchronization)

> Counter class is messy
> ----------------------
>
>                 Key: AXIS2-2462
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2462
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: kernel
>    Affects Versions: nightly
>         Environment: all
>            Reporter: Michele Mazzucco
>         Attachments: Counter.patch
>
>
> The org.apache.axis2.util.Counter class is messy:
> 1 - The use of reflection is not needed and it's indeed dangerous since errors happen only at run time
> 2 - There's too much synchronization

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


[jira] Resolved: (AXIS2-2462) Counter class is messy

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

Deepal Jayasinghe resolved AXIS2-2462.
--------------------------------------

    Resolution: Fixed

applied the patch

> Counter class is messy
> ----------------------
>
>                 Key: AXIS2-2462
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2462
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: kernel
>    Affects Versions: nightly
>         Environment: all
>            Reporter: Michele Mazzucco
>         Attachments: Counter.patch
>
>
> The org.apache.axis2.util.Counter class is messy:
> 1 - The use of reflection is not needed and it's indeed dangerous since errors happen only at run time
> 2 - There's too much synchronization

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