axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (AXIS2-4405) (int)Math.random() always returns 0
Date Sat, 04 Jul 2009 17:00:47 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-4405?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andreas Veithen reassigned AXIS2-4405:
--------------------------------------

    Assignee: Andreas Veithen

> (int)Math.random() always returns 0
> -----------------------------------
>
>                 Key: AXIS2-4405
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4405
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: adb
>            Reporter: Neil Fraser
>            Assignee: Andreas Veithen
>
> This file:
> modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl
> Contains the following code:
> private java.lang.String createPrefix() {
>                 return "ns" + (int)Math.random();
> }
> This code is clearly defective, since (int)Math.random() will always return 0.
> It is unknown if this is causing errors or if the code is ever executed.  This bug was
found through static analysis.
> Note that bug AXIS2-2366 dealt with this two years ago, but the code remains.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message