<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://jogamp.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2"
          urlbase="https://jogamp.org/bugzilla/"
          
          maintainer="sgothel@jausoft.com"
>

    <bug>
          <bug_id>685</bug_id>
          
          <creation_ts>2013-02-07 00:10:34 +0100</creation_ts>
          <short_desc>Analyze all core sources for FindBug hits as mentioned below (ongoing bug entry)</short_desc>
          <delta_ts>2013-03-27 14:08:42 +0100</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>General</product>
          <component>source_code</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>all</op_sys>
          <bug_status>UNCONFIRMED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Sven Gothel">sgothel</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          <cc>gouessej</cc>
    
    <cc>harvey.harrison</cc>
    
    <cc>xerxes</cc>
          
          <cf_type>---</cf_type>
          <cf_scm_refs></cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2159</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-02-07 00:10:34 +0100</bug_when>
    <thetext>http://findbugs.sourceforge.net/bugDescriptions.html#DMI_BLOCKING_METHODS_ON_URL

See bug 683.

Dm: The equals and hashCode methods of URL are blocking (DMI_BLOCKING_METHODS_ON_URL)

The equals and hashCode method of URL perform domain name resolution, this can result in a big performance hit. See http://michaelscharf.blogspot.com/2006/11/javaneturlequals-and-hashcode-make.html for more information. Consider using java.net.URI instead. 

+++

http://findbugs.sourceforge.net/bugDescriptions.html#ML_SYNC_ON_FIELD_TO_GUARD_CHANGING_THAT_FIELD

.. we should not have this one :)

+++

http://findbugs.sourceforge.net/bugDescriptions.html#DMI_INVOKING_TOSTRING_ON_ARRAY
USELESS_STRING: Invocation of toString on an array (DMI_INVOKING_TOSTRING_ON_ARRAY)

The code invokes toString on an array, which will generate a fairly useless result such as [C@16f0472. Consider using Arrays.toString to convert the array into a readable String that gives the contents of the array. See Programming Puzzlers, chapter 3, puzzle 12.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2162</commentid>
    <comment_count>1</comment_count>
    <who name="Harvey Harrison">harvey.harrison</who>
    <bug_when>2013-02-07 20:37:33 +0100</bug_when>
    <thetext>I need to find a good way to process the findbugs output so I can put a
todo list here.

In the meantime, I&apos;ve pushed out a patch to github changing all the occurences
where toString was being called on an array (all 6 of them).

I haven&apos;t given this a whole lot of thought, so feel free to ignore until I
look more closely, the are all in other toString() methods.

git://github.com/hharrison/jogl.git master

Harvey</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2363</commentid>
    <comment_count>2</comment_count>
    <who name="Julien Gouesse">gouessej</who>
    <bug_when>2013-03-27 14:08:25 +0100</bug_when>
    <thetext>Harvey, do you plan to make a pull request with your findings?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>