(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


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.

Reply via email to