[jira] Created: (JRUBY-4187) [findbugs] Random object created and used only once in org.jruby.RubyTempfile.initialize(IRubyObject[], Block)

View: New views
1 Messages — Rating Filter:   Alert me  

[jira] Created: (JRUBY-4187) [findbugs] Random object created and used only once in org.jruby.RubyTempfile.initialize(IRubyObject[], Block)

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

[findbugs] Random object created and used only once in org.jruby.RubyTempfile.initialize(IRubyObject[], Block)
--------------------------------------------------------------------------------------------------------------

                 Key: JRUBY-4187
                 URL: http://jira.codehaus.org/browse/JRUBY-4187
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.4.0RC3, JRuby 1.4, JRuby 1.5
            Reporter: Hiro Asari
            Priority: Minor
             Fix For: JRuby 1.5
         Attachments: 0001-Avoid-creating-java.util.Random-object-for-tempfile.patch

FindBugs says:
{noformat}
BC Random object created and used only once in org.jruby.RubyTempfile.initialize(IRubyObject[], Block)
       

Bug type DMI_RANDOM_USED_ONLY_ONCE (click for details)
In class org.jruby.RubyTempfile
In method org.jruby.RubyTempfile.initialize(IRubyObject[], Block)
Called method java.util.Random.nextInt()
At RubyTempfile.java:[line 106]
{noformat}

FindBugs says it is "high priority", but I'm not so sure.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email