| 1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| 2 |
<html> |
| 3 |
<head> |
| 4 |
<title>FindBugs Change Log</title> |
| 5 |
<link rel="stylesheet" type="text/css" href="findbugs.css"> |
| 6 |
@GOOGLE_ANALYTICS@ |
| 7 |
</head> |
| 8 |
|
| 9 |
<body> |
| 10 |
|
| 11 |
<table width="100%"> |
| 12 |
<tr> |
| 13 |
|
| 14 |
@HTML_SIDEBAR@ |
| 15 |
|
| 16 |
<td align="left" valign="top"> |
| 17 |
|
| 18 |
|
| 19 |
<h1>FindBugs Change Log, Version @VERSION@</h1> |
| 20 |
<ul> |
| 21 |
<li>New Bug patterns: |
| 22 |
<ul> |
| 23 |
<li> |
| 24 |
<a |
| 25 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#BSHIFT_WRONG_ADD_PRIORITY">BSHIFT_WRONG_ADD_PRIORITY</a>, |
| 26 |
<li> |
| 27 |
<a |
| 28 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#CO_COMPARETO_INCORRECT_FLOATING">CO_COMPARETO_INCORRECT_FLOATING</a>, |
| 29 |
<li> |
| 30 |
<a |
| 31 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#DC_PARTIALLY_CONSTRUCTED">DC_PARTIALLY_CONSTRUCTED</a>, |
| 32 |
<li> |
| 33 |
<a |
| 34 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#DM_BOXED_PRIMITIVE_FOR_COMPARE">DM_BOXED_PRIMITIVE_FOR_COMPARE</a>, |
| 35 |
<li> |
| 36 |
<a |
| 37 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#DM_INVALID_MIN_MAX">DM_INVALID_MIN_MAX</a>, |
| 38 |
<li> |
| 39 |
<a |
| 40 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#ME_MUTABLE_ENUM_FIELD">ME_MUTABLE_ENUM_FIELD</a>, |
| 41 |
<li> |
| 42 |
<a |
| 43 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#ME_ENUM_FIELD_SETTER">ME_ENUM_FIELD_SETTER</a>, |
| 44 |
<li> |
| 45 |
<a |
| 46 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#MS_MUTABLE_COLLECTION">MS_MUTABLE_COLLECTION</a>, |
| 47 |
<li> |
| 48 |
<a |
| 49 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#MS_MUTABLE_COLLECTION_PKGPROTECT">MS_MUTABLE_COLLECTION_PKGPROTECT</a>, |
| 50 |
<li> |
| 51 |
<a |
| 52 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#RANGE_ARRAY_INDEX">RANGE_ARRAY_INDEX</a>, |
| 53 |
<li> |
| 54 |
<a |
| 55 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#RANGE_ARRAY_OFFSET">RANGE_ARRAY_OFFSET</a>, |
| 56 |
<li> |
| 57 |
<a |
| 58 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#RANGE_ARRAY_LENGTH">RANGE_ARRAY_LENGTH</a>, |
| 59 |
<li> |
| 60 |
<a |
| 61 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#RANGE_STRING_INDEX">RANGE_STRING_INDEX</a>, |
| 62 |
<li> |
| 63 |
<a |
| 64 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT">RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT</a>, |
| 65 |
<li> |
| 66 |
<a |
| 67 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#UC_USELESS_CONDITION">UC_USELESS_CONDITION</a>, |
| 68 |
<li> |
| 69 |
<a |
| 70 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#UC_USELESS_CONDITION_TYPE">UC_USELESS_CONDITION_TYPE</a>, |
| 71 |
<li> |
| 72 |
<a |
| 73 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#UC_USELESS_OBJECT">UC_USELESS_OBJECT</a>, |
| 74 |
<li> |
| 75 |
<a |
| 76 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#UC_USELESS_OBJECT_STACK">UC_USELESS_OBJECT_STACK</a>, |
| 77 |
<li> |
| 78 |
<a |
| 79 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#UC_USELESS_VOID_METHOD">UC_USELESS_VOID_METHOD</a> |
| 80 |
</ul> |
| 81 |
</li> |
| 82 |
<li>Improved Bug patterns: |
| 83 |
<ul> |
| 84 |
<li> |
| 85 |
<a |
| 86 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#INT_BAD_COMPARISON_WITH_NONNEGATIVE_VALUE">INT_BAD_COMPARISON_WITH_NONNEGATIVE_VALUE</a>, |
| 87 |
<li> |
| 88 |
<a |
| 89 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#RpC_REPEATED_CONDITIONAL_TEST">RpC_REPEATED_CONDITIONAL_TEST</a>, |
| 90 |
<li> |
| 91 |
<a |
| 92 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#WMI_WRONG_MAP_ITERATOR">WMI_WRONG_MAP_ITERATOR</a>, |
| 93 |
<li> |
| 94 |
<a |
| 95 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#DMI_HARDCODED_ABSOLUTE_FILENAME">DMI_HARDCODED_ABSOLUTE_FILENAME</a>, |
| 96 |
<li> |
| 97 |
<a |
| 98 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#DMI_EMPTY_DB_PASSWORD">DMI_EMPTY_DB_PASSWORD</a>, |
| 99 |
<li> |
| 100 |
<a |
| 101 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#DMI_CONSTANT_DB_PASSWORD">DMI_CONSTANT_DB_PASSWORD</a>, |
| 102 |
<li> |
| 103 |
<a |
| 104 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#PT_ABSOLUTE_PATH_TRAVERSAL">PT_ABSOLUTE_PATH_TRAVERSAL</a>, |
| 105 |
<li> |
| 106 |
<a |
| 107 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#PT_RELATIVE_PATH_TRAVERSAL">PT_RELATIVE_PATH_TRAVERSAL</a>, |
| 108 |
<li> |
| 109 |
<a |
| 110 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#IA_AMBIGUOUS_INVOCATION_OF_INHERITED_OR_OUTER_METHOD">IA_AMBIGUOUS_INVOCATION_OF_INHERITED_OR_OUTER_METHOD</a>, |
| 111 |
<li> |
| 112 |
<a |
| 113 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#SQL_NONCONSTANT_STRING_PASSED_TO_EXECUTE">SQL_NONCONSTANT_STRING_PASSED_TO_EXECUTE</a>, |
| 114 |
<li> |
| 115 |
<a |
| 116 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#SQL_PREPARED_STATEMENT_GENERATED_FROM_NONCONSTANT_STRING">SQL_PREPARED_STATEMENT_GENERATED_FROM_NONCONSTANT_STRING</a> |
| 117 |
</ul> |
| 118 |
</li> |
| 119 |
<li> Bug patterns under evaluation: |
| 120 |
<ul> |
| 121 |
<li> |
| 122 |
<a |
| 123 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#CAA_COVARIANT_ARRAY_FIELD">CAA_COVARIANT_ARRAY_FIELD</a>, |
| 124 |
<li> |
| 125 |
<a |
| 126 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#CAA_COVARIANT_ARRAY_RETURN">CAA_COVARIANT_ARRAY_RETURN</a>, |
| 127 |
<li> |
| 128 |
<a |
| 129 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#CAA_COVARIANT_ARRAY_LOCAL">CAA_COVARIANT_ARRAY_LOCAL</a>, |
| 130 |
<li> |
| 131 |
<a |
| 132 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#CAA_COVARIANT_ARRAY_ELEMENT_STORE">CAA_COVARIANT_ARRAY_ELEMENT_STORE</a>, |
| 133 |
<li> |
| 134 |
<a |
| 135 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#IIL_PREPARE_STATEMENT_IN_LOOP">IIL_PREPARE_STATEMENT_IN_LOOP</a>, |
| 136 |
<li> |
| 137 |
<a |
| 138 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#IIL_PATTERN_COMPILE_IN_LOOP">IIL_PATTERN_COMPILE_IN_LOOP</a>, |
| 139 |
<li> |
| 140 |
<a |
| 141 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#IIL_PATTERN_COMPILE_IN_LOOP_INDIRECT">IIL_PATTERN_COMPILE_IN_LOOP_INDIRECT</a>, |
| 142 |
<li> |
| 143 |
<a |
| 144 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#IIL_ELEMENTS_GET_LENGTH_IN_LOOP">IIL_ELEMENTS_GET_LENGTH_IN_LOOP</a>, |
| 145 |
</ul> |
| 146 |
|
| 147 |
</li> |
| 148 |
|
| 149 |
|
| 150 |
|
| 151 |
|
| 152 |
|
| 153 |
|
| 154 |
|
| 155 |
|
| 156 |
|
| 157 |
|
| 158 |
|
| 159 |
|
| 160 |
|
| 161 |
|
| 162 |
|
| 163 |
|
| 164 |
|
| 165 |
<li>Various bug fixes, also many patches from community. Thanks for your contributions! |
| 166 |
</li> |
| 167 |
</ul> |
| 168 |
|
| 169 |
<h1>FindBugs Change Log, Version 3.0.0</h1> |
| 170 |
<ul> |
| 171 |
<li>FindBugs supports Java 8 now (both as runtime and target platform). |
| 172 |
<li>FindBugs requires minimum Java 7 as runtime environment! |
| 173 |
<li>FindBugs uses ASM 5 now which means that some 3rd party detectors based on FindBugs 2.x/ASM 3 has to be upgraded. |
| 174 |
See details in <a href="http://download.forge.objectweb.org/asm/asm4-guide.pdf#chapter.5">ASM documentation</a>. |
| 175 |
<li>New Bug patterns: |
| 176 |
<a |
| 177 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#NP_OPTIONAL_RETURN_NULL">NP_OPTIONAL_RETURN_NULL</a>, |
| 178 |
<a |
| 179 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#IIO_INEFFICIENT_INDEX_OF">IIO_INEFFICIENT_INDEX_OF</a>, |
| 180 |
<a |
| 181 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#IIO_INEFFICIENT_LAST_INDEX_OF">IIO_INEFFICIENT_LAST_INDEX_OF</a>, |
| 182 |
<a |
| 183 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#CNT_ROUGH_CONSTANT_VALUE">CNT_ROUGH_CONSTANT_VALUE</a> |
| 184 |
</li> |
| 185 |
<li>New "Source" filter which can be used to filter out classes generated from other languages: |
| 186 |
<pre> |
| 187 |
<?xml version="1.0" encoding="UTF-8"?> |
| 188 |
<FindBugsFilter> |
| 189 |
<Match> |
| 190 |
<Source name="~.*\.groovy" /> |
| 191 |
</Match> |
| 192 |
</FindBugsFilter> |
| 193 |
</pre> |
| 194 |
</li> |
| 195 |
<li>New "-auxclasspathFromFile" and "-analyzeFromFile" command line options. |
| 196 |
</li> |
| 197 |
<li>New "nested" ant task attribute. |
| 198 |
</li> |
| 199 |
|
| 200 |
|
| 201 |
|
| 202 |
|
| 203 |
|
| 204 |
|
| 205 |
|
| 206 |
|
| 207 |
|
| 208 |
|
| 209 |
|
| 210 |
|
| 211 |
|
| 212 |
|
| 213 |
|
| 214 |
|
| 215 |
|
| 216 |
|
| 217 |
<li>Various bug fixes, also many patches from community. Thanks for your contributions! |
| 218 |
</li> |
| 219 |
</ul> |
| 220 |
|
| 221 |
|
| 222 |
<h1>FindBugs Change Log, Version 2.0.3</h1> |
| 223 |
<ul> |
| 224 |
<li>New Bug patterns: <a |
| 225 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#DM_BOXED_PRIMITIVE_FOR_PARSING">DM_BOXED_PRIMITIVE_FOR_PARSING</a>, |
| 226 |
<a |
| 227 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#NP_METHOD_RETURN_RELAXING_ANNOTATION">NP_METHOD_RETURN_RELAXING_ANNOTATION</a>, |
| 228 |
and |
| 229 |
<a |
| 230 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#NP_METHOD_PARAMETER_TIGHTENS_ANNOTATION">NP_METHOD_PARAMETER_TIGHTENS_ANNOTATION</a> |
| 231 |
</li> |
| 232 |
<li>Add the ability in the GUI to save the currently viewable/filtered bugs to HTML output. |
| 233 |
<li>When dataflow does't terminate, make sure we continue with |
| 234 |
analysis. |
| 235 |
|
| 236 |
<li>Fix some problems that resulting in dataflow analysis not |
| 237 |
terminating |
| 238 |
|
| 239 |
<li>Get parameter annotations from default parameters |
| 240 |
annotations applied to the method. |
| 241 |
<li>Add subversion change number to eclipse plugin qualifier. |
| 242 |
|
| 243 |
<li>Disabled detector for <a |
| 244 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#AM_CREATES_EMPTY_JAR_FILE_ENTRY">AM_CREATES_EMPTY_JAR_FILE_ENTRY</a>; |
| 245 |
it complaints inappropriately about code that creates directory |
| 246 |
entries. |
| 247 |
|
| 248 |
<li>Add warnings about incompatible types passed to |
| 249 |
org.testng.Assert.assertEquals</li> |
| 250 |
<li>Add logic that understands more of the Google Guava APIs. |
| 251 |
<li>Disable type qualifier validator execution within Eclipse plugin; |
| 252 |
too many problems with class loading and security manager (see #1154 Random obscure Eclipse failures) |
| 253 |
<li>Consistently check both access flags and attributes to see if something is synthetic. Compiler is |
| 254 |
inconsistent about where synthetic elements are marked. |
| 255 |
|
| 256 |
<li>Fixed false positives for the following bug patterns (17 |
| 257 |
occurrences in findbugsTestCases): |
| 258 |
<ul> |
| 259 |
<li><a |
| 260 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#BC">BC</a> |
| 261 |
<li><a |
| 262 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#BC_IMPOSSIBLE_INSTANCEOF">BC_IMPOSSIBLE_INSTANCEOF</a> |
| 263 |
<li><a |
| 264 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#BC_UNCONFIRMED_CAST">BC_UNCONFIRMED_CAST</a> |
| 265 |
<li><a |
| 266 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#EC_UNRELATED_TYPES">EC_UNRELATED_TYPES</a> |
| 267 |
<li><a |
| 268 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#INT_BAD_COMPARISON_WITH_NONNEGATIVE_VALUE">INT_BAD_COMPARISON_WITH_NONNEGATIVE_VALUE</a> |
| 269 |
<li><a |
| 270 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#IS2_INCONSISTENT_SYNC">IS2_INCONSISTENT_SYNC</a> |
| 271 |
<li><a |
| 272 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#NP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS">NP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS</a> |
| 273 |
<li><a |
| 274 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#OBL_UNSATISFIED_OBLIGATION">OBL_UNSATISFIED_OBLIGATION</a> |
| 275 |
<li><a |
| 276 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#RCN_REDUNDANT_NULLCHECK_OF_NULL_VALUE">RCN_REDUNDANT_NULLCHECK_OF_NULL_VALUE</a> |
| 277 |
<li><a |
| 278 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#SA_FIELD_SELF_COMPARISON">SA_FIELD_SELF_COMPARISON</a> |
| 279 |
<li><a |
| 280 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#TQ_UNKNOWN_VALUE_USED_WHERE_ALWAYS_STRICTLY_REQUIRED">TQ_UNKNOWN_VALUE_USED_WHERE_ALWAYS_STRICTLY_REQUIRED</a> |
| 281 |
</li> |
| 282 |
</ul> |
| 283 |
<li>Fixed false negatives for the following bug patterns (45 |
| 284 |
occurrences in findbugsTestCases): |
| 285 |
<ul> |
| 286 |
<li><a |
| 287 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#BC_UNCONFIRMED_CAST">BC_UNCONFIRMED_CAST</a> |
| 288 |
<li><a |
| 289 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#DM_NUMBER_CTOR">DM_NUMBER_CTOR</a> |
| 290 |
<li><a |
| 291 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#EC_ARRAY_AND_NONARRAY">EC_ARRAY_AND_NONARRAY</a> |
| 292 |
<li><a |
| 293 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#EC_INCOMPATIBLE_ARRAY_COMPARE">EC_INCOMPATIBLE_ARRAY_COMPARE</a> |
| 294 |
<li><a |
| 295 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#EC_UNRELATED_TYPES">EC_UNRELATED_TYPES</a> |
| 296 |
<li><a |
| 297 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#GC_UNRELATED_TYPES">GC_UNRELATED_TYPES</a> |
| 298 |
<li><a |
| 299 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#IS_FIELD_NOT_GUARDED">IS_FIELD_NOT_GUARDED</a> |
| 300 |
<li><a |
| 301 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#IT_NO_SUCH_ELEMENT">IT_NO_SUCH_ELEMENT</a> |
| 302 |
<li><a |
| 303 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#JCIP_FIELD_ISNT_FINAL_IN_IMMUTABLE_CLASS">JCIP_FIELD_ISNT_FINAL_IN_IMMUTABLE_CLASS</a> |
| 304 |
<li><a |
| 305 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#NP_NULL_ON_SOME_PATH">NP_NULL_ON_SOME_PATH</a> |
| 306 |
<li><a |
| 307 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#NP_NONNULL_PARAM_VIOLATION">NP_NONNULL_PARAM_VIOLATION</a> |
| 308 |
<li><a |
| 309 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE">NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE</a> |
| 310 |
<li><a |
| 311 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#NP_PARAMETER_MUST_BE_NONNULL_BUT_MARKED_AS_NULLABLE">NP_PARAMETER_MUST_BE_NONNULL_BUT_MARKED_AS_NULLABLE</a> |
| 312 |
<li><a |
| 313 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#NP_STORE_INTO_NONNULL_FIELD">NP_STORE_INTO_NONNULL_FIELD</a> |
| 314 |
<li><a |
| 315 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#RE_POSSIBLE_UNINTENDED_PATTERN">RE_POSSIBLE_UNINTENDED_PATTERN</a> |
| 316 |
<li><a |
| 317 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#SA_FIELD_SELF_COMPARISON">SA_FIELD_SELF_COMPARISON</a> |
| 318 |
</ul> |
| 319 |
</ul> |
| 320 |
<h1>FindBugs Change Log, Version 2.0.2</h1> |
| 321 |
|
| 322 |
<ul> |
| 323 |
<li>Fix false positions for <a |
| 324 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR">NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR</a> |
| 325 |
- fixing <a |
| 326 |
href="https://sourceforge.net/tracker/?func=detail&aid=3547559&group_id=96405&atid=614693">Bug3547559</a>, |
| 327 |
<a |
| 328 |
href="https://sourceforge.net/tracker/?func=detail&aid=3555408&group_id=96405&atid=614693">Bug3555408</a>, |
| 329 |
<a |
| 330 |
href="https://sourceforge.net/tracker/?func=detail&aid=3580266&group_id=96405&atid=614693">Bug3580266</a> |
| 331 |
and <a |
| 332 |
href="https://sourceforge.net/tracker/?func=detail&aid=3587164&group_id=96405&atid=614693">Bug3587164</a>. |
| 333 |
|
| 334 |
|
| 335 |
</li> |
| 336 |
<li>Fix false positives for <a |
| 337 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#SF_SWITCH_NO_DEFAULT">SF_SWITCH_NO_DEFAULT</a> |
| 338 |
<li>Inline access methods for private fields, |
| 339 |
fixing false positive in <a |
| 340 |
href="https://sourceforge.net/tracker/?func=detail&aid=3484713&group_id=96405&atid=614693">Bug3484713</a>. |
| 341 |
|
| 342 |
<li>Type qualifier annotations, including nullness |
| 343 |
annotations, are now ignored on vararg parameters (including |
| 344 |
default and inherited annotations), awaiting JSR308. |
| 345 |
<li>Defined new bug pattern to give better explanations of |
| 346 |
issues involving strict type qualifiers <a |
| 347 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#TQ_UNKNOWN_VALUE_USED_WHERE_ALWAYS_STRICTLY_REQUIRED">TQ_UNKNOWN_VALUE_USED_WHERE_ALWAYS_STRICTLY_REQUIRED</a> |
| 348 |
<li>Adjusted analysis of type qualifiers, now giving warnings |
| 349 |
where a computed value is used in a place where a value with a |
| 350 |
strict type qualifier is required. |
| 351 |
<li>Complain about missing classes only if they are |
| 352 |
encountered while analyzing application classes; ignore missing |
| 353 |
classes that are encounted while analyzing classes loaded from the |
| 354 |
auxclasspath. Fix for <a |
| 355 |
href="https://sourceforge.net/tracker/?func=detail&aid=3588379&group_id=96405&atid=614693">Bug3588379</a> |
| 356 |
<li>Fixed false positive null pointer warning coming from |
| 357 |
synthetic bridge methods, fixing <a |
| 358 |
href="https://sourceforge.net/tracker/?func=detail&aid=3589328&group_id=96405&atid=614693">Bug3589328</a> |
| 359 |
<li>In general, suppress warnings in synthetic methods. |
| 360 |
<li>Fix some false positives involving <a |
| 361 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#GC_UNRELATED_TYPES">GC_UNRELATED_TYPES</a> |
| 362 |
on classes that extend generic collection classes. |
| 363 |
|
| 364 |
</li> |
| 365 |
<li>Combine multiple identical warnings about |
| 366 |
<a |
| 367 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#DM_DEFAULT_ENCODING">DM_DEFAULT_ENCODING</a> |
| 368 |
that occur in the same method, |
| 369 |
simplifying issue triage. |
| 370 |
|
| 371 |
<li>Changes by Andrey Loskutov |
| 372 |
<ul> |
| 373 |
<li>fixed job scheduling errors in 3.8/4.2 Eclipse <a |
| 374 |
href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=393748">bug |
| 375 |
report</a> |
| 376 |
<li>more realistic progress bar updates for jobs |
| 377 |
<li>added nullness annotations for some common Eclipse API |
| 378 |
methods known to usually return null values |
| 379 |
<li>Added support for org.eclipse.jdt.annotation.Nullable, |
| 380 |
NonNull and NonNullByDefault annotations (introduced with |
| 381 |
Eclipse 3.8/4.2)</li> |
| 382 |
</ul> |
| 383 |
<li>Documentation improvements |
| 384 |
<li><a href="http://code.google.com/p/findbugs/source/list">lots |
| 385 |
of other small changes</a> |
| 386 |
</ul> |
| 387 |
<h1>FindBugs Change Log, Version 2.0.1</h1> |
| 388 |
|
| 389 |
<ul> |
| 390 |
<li>New bug patterns; in some cases, bugs previous reported as |
| 391 |
other bug patterns are reported as instances of these new bug |
| 392 |
patterns in order to make it easier for developers to understand |
| 393 |
the bug reports |
| 394 |
<ul> |
| 395 |
<li><a |
| 396 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#PT_ABSOLUTE_PATH_TRAVERSAL">PT_ABSOLUTE_PATH_TRAVERSAL</a></li> |
| 397 |
<li><a |
| 398 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#PT_RELATIVE_PATH_TRAVERSAL">PT_RELATIVE_PATH_TRAVERSAL</a></li> |
| 399 |
<li><a |
| 400 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR">NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR</a></li> |
| 401 |
<li><a |
| 402 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#MS_SHOULD_BE_REFACTORED_TO_BE_FINAL">MS_SHOULD_BE_REFACTORED_TO_BE_FINAL</a></li> |
| 403 |
<li><a |
| 404 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#BC_UNCONFIRMED_CAST_OF_RETURN_VALUE">BC_UNCONFIRMED_CAST_OF_RETURN_VALUE</a></li> |
| 405 |
<li><a |
| 406 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#PT_ABSOLUTE_PATH_TRAVERSAL">PT_ABSOLUTE_PATH_TRAVERSAL</a></li> |
| 407 |
<li><a |
| 408 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#TQ_COMPARING_VALUES_WITH_INCOMPATIBLE_TYPE_QUALIFIERS">TQ_COMPARING_VALUES_WITH_INCOMPATIBLE_TYPE_QUALIFIERS</a></li> |
| 409 |
</ul> |
| 410 |
</li> |
| 411 |
|
| 412 |
<li>Changes to fix false negatives for the following bug |
| 413 |
patterns: <a |
| 414 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#BC_UNCONFIRMED_CAST">BC_UNCONFIRMED_CAST</a>, |
| 415 |
<a |
| 416 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#EC_BAD_ARRAY_COMPARE">EC_BAD_ARRAY_COMPARE</a>, |
| 417 |
<a |
| 418 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#EQ_UNUSUAL">EQ_UNUSUAL</a>, |
| 419 |
<a |
| 420 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#GC_UNRELATED_TYPES">GC_UNRELATED_TYPES</a>, |
| 421 |
and <a |
| 422 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#NP_PARAMETER_MUST_BE_NONNULL_BUT_MARKED_AS_NULLABLE">NP_PARAMETER_MUST_BE_NONNULL_BUT_MARKED_AS_NULLABLE</a>. |
| 423 |
</li> |
| 424 |
|
| 425 |
<li>Changes to fix false positions for the following bug |
| 426 |
patterns: <a |
| 427 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#DMI_DOH">DMI_DOH</a>, |
| 428 |
<a |
| 429 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#EC_UNRELATED_TYPES">EC_UNRELATED_TYPES</a>, |
| 430 |
and <a |
| 431 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#SE_BAD_FIELD">SE_BAD_FIELD</a>. |
| 432 |
</li> |
| 433 |
</ul> |
| 434 |
|
| 435 |
<h1>FindBugs Change Log, Version 2.0.0</h1> |
| 436 |
|
| 437 |
<h2>Changes since version 1.3.8</h2> |
| 438 |
<ul> |
| 439 |
<li>New bug patterns; in some cases, bugs previous reported as |
| 440 |
other bug patterns are reported as instances of these new bug |
| 441 |
patterns in order to make it easier for developers to understand |
| 442 |
the bug reports |
| 443 |
<ul> |
| 444 |
<li><a |
| 445 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#BC_IMPOSSIBLE_DOWNCAST ">BC_IMPOSSIBLE_DOWNCAST |
| 446 |
</a></li> |
| 447 |
<li><a |
| 448 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#BC_IMPOSSIBLE_DOWNCAST_OF_TOARRAY ">BC_IMPOSSIBLE_DOWNCAST_OF_TOARRAY |
| 449 |
</a></li> |
| 450 |
<li><a |
| 451 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#EC_INCOMPATIBLE_ARRAY_COMPARE ">EC_INCOMPATIBLE_ARRAY_COMPARE |
| 452 |
</a></li> |
| 453 |
<li><a |
| 454 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#JLM_JSR166_UTILCONCURRENT_MONITORENTER ">JLM_JSR166_UTILCONCURRENT_MONITORENTER |
| 455 |
</a></li> |
| 456 |
<li><a |
| 457 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#LG_LOST_LOGGER_DUE_TO_WEAK_REFERENCE ">LG_LOST_LOGGER_DUE_TO_WEAK_REFERENCE |
| 458 |
</a></li> |
| 459 |
<li><a |
| 460 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#NP_CLOSING_NULL ">NP_CLOSING_NULL |
| 461 |
</a></li> |
| 462 |
<li><a |
| 463 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#RC_REF_COMPARISON_BAD_PRACTICE ">RC_REF_COMPARISON_BAD_PRACTICE |
| 464 |
</a></li> |
| 465 |
<li><a |
| 466 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#RC_REF_COMPARISON_BAD_PRACTICE_BOOLEAN ">RC_REF_COMPARISON_BAD_PRACTICE_BOOLEAN |
| 467 |
</a></li> |
| 468 |
<li><a |
| 469 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#RV_RETURN_VALUE_OF_PUTIFABSENT_IGNORED ">RV_RETURN_VALUE_OF_PUTIFABSENT_IGNORED |
| 470 |
</a></li> |
| 471 |
<li><a |
| 472 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#SIC_THREADLOCAL_DEADLY_EMBRACE ">SIC_THREADLOCAL_DEADLY_EMBRACE |
| 473 |
</a></li> |
| 474 |
<li><a |
| 475 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#UR_UNINIT_READ_CALLED_FROM_SUPER_CONSTRUCTOR ">UR_UNINIT_READ_CALLED_FROM_SUPER_CONSTRUCTOR |
| 476 |
</a></li> |
| 477 |
<li><a |
| 478 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#VA_FORMAT_STRING_EXPECTED_MESSAGE_FORMAT_SUPPLIED ">VA_FORMAT_STRING_EXPECTED_MESSAGE_FORMAT_SUPPLIED |
| 479 |
</a></li> |
| 480 |
</ul> |
| 481 |
</li> |
| 482 |
<li>Providing a bug rank (1-20), and the ability to filter by |
| 483 |
bug rank. Eventually, it will be possible to specify your own |
| 484 |
rules for ranking bugs, but the procedure for doing so hasn't been |
| 485 |
specified yet.</li> |
| 486 |
<li>Fixed about <a |
| 487 |
href="https://sourceforge.net/search/index.php?group_id=96405&search_summary=1&search_details=1&type_of_search=artifact&group_artifact_id%5B%5D=614693&open_date_start=2009-03-16&open_date_end=2009-08-20&form_submit=Search">45 |
| 488 |
bugs filed</a> through SourceForge |
| 489 |
</li> |
| 490 |
<li>Various reclassifications and priority tweaks</li> |
| 491 |
<li>Added more bug annotations to a variety of bug reports. |
| 492 |
This provides more context for understanding bug reports (e.g., if |
| 493 |
the value in question was is the return value of a method, the |
| 494 |
method is described as the source of the value in a bug |
| 495 |
annotation). This also provide more accurate tracking of issues |
| 496 |
across versions of the code being analyzed, but has the downside |
| 497 |
that when comparing results from FindBugs 1.3.8 and FindBugs 1.3.9 |
| 498 |
on the same version of code being analyzed, FindBugs may think |
| 499 |
that mistakenly believe that the issue reported by 1.3.8 was fixed |
| 500 |
and a new issue was introduced that was reported by FindBugs |
| 501 |
1.3.9. While annoying, it would be unusual for more than a dozen |
| 502 |
issues per million lines of codes to be mistracked.</li> |
| 503 |
<li>Lots of internal changes moving towards FindBugs 2.0, but |
| 504 |
these features are undocumented, not yet officially supported, and |
| 505 |
subject to radical changes before FindBugs 2.0 is released.</li> |
| 506 |
</ul> |
| 507 |
|
| 508 |
<p>Changes since version 1.3.8</p> |
| 509 |
<ul> |
| 510 |
<li>New bug patterns; in some cases, bugs previous reported as |
| 511 |
other bug patterns are reported as instances of these new bug |
| 512 |
patterns in order to make it easier for developers to understand |
| 513 |
the bug reports |
| 514 |
<ul> |
| 515 |
<li><a |
| 516 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#BC_IMPOSSIBLE_DOWNCAST ">BC_IMPOSSIBLE_DOWNCAST |
| 517 |
</a> |
| 518 |
<li><a |
| 519 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#BC_IMPOSSIBLE_DOWNCAST_OF_TOARRAY ">BC_IMPOSSIBLE_DOWNCAST_OF_TOARRAY |
| 520 |
</a> |
| 521 |
<li><a |
| 522 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#EC_INCOMPATIBLE_ARRAY_COMPARE ">EC_INCOMPATIBLE_ARRAY_COMPARE |
| 523 |
</a> |
| 524 |
<li><a |
| 525 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#JLM_JSR166_UTILCONCURRENT_MONITORENTER ">JLM_JSR166_UTILCONCURRENT_MONITORENTER |
| 526 |
</a> |
| 527 |
<li><a |
| 528 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#LG_LOST_LOGGER_DUE_TO_WEAK_REFERENCE ">LG_LOST_LOGGER_DUE_TO_WEAK_REFERENCE |
| 529 |
</a> |
| 530 |
<li><a |
| 531 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#NP_CLOSING_NULL ">NP_CLOSING_NULL |
| 532 |
</a> |
| 533 |
<li><a |
| 534 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#RC_REF_COMPARISON_BAD_PRACTICE ">RC_REF_COMPARISON_BAD_PRACTICE |
| 535 |
</a> |
| 536 |
<li><a |
| 537 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#RC_REF_COMPARISON_BAD_PRACTICE_BOOLEAN ">RC_REF_COMPARISON_BAD_PRACTICE_BOOLEAN |
| 538 |
</a> |
| 539 |
<li><a |
| 540 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#RV_RETURN_VALUE_OF_PUTIFABSENT_IGNORED ">RV_RETURN_VALUE_OF_PUTIFABSENT_IGNORED |
| 541 |
</a> |
| 542 |
<li><a |
| 543 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#SIC_THREADLOCAL_DEADLY_EMBRACE ">SIC_THREADLOCAL_DEADLY_EMBRACE |
| 544 |
</a> |
| 545 |
<li><a |
| 546 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#UR_UNINIT_READ_CALLED_FROM_SUPER_CONSTRUCTOR ">UR_UNINIT_READ_CALLED_FROM_SUPER_CONSTRUCTOR |
| 547 |
</a> |
| 548 |
<li><a |
| 549 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#VA_FORMAT_STRING_EXPECTED_MESSAGE_FORMAT_SUPPLIED ">VA_FORMAT_STRING_EXPECTED_MESSAGE_FORMAT_SUPPLIED |
| 550 |
</a> |
| 551 |
</ul> |
| 552 |
</li> |
| 553 |
<li>Providing a bug rank (1-20), and the ability to filter by |
| 554 |
bug rank. Eventually, it will be possible to specify your own |
| 555 |
rules for ranking bugs, but the procedure for doing so hasn't been |
| 556 |
specified yet.</li> |
| 557 |
<li>Fixed about <a |
| 558 |
href="https://sourceforge.net/search/index.php?group_id=96405&search_summary=1&search_details=1&type_of_search=artifact&group_artifact_id%5B%5D=614693&open_date_start=2009-03-16&open_date_end=2009-08-20&form_submit=Search">45 |
| 559 |
bugs filed</a> through SourceForge |
| 560 |
</li> |
| 561 |
<li>Various reclassifications and priority tweaks</li> |
| 562 |
<li>Added more bug annotations to a variety of bug reports. |
| 563 |
This provides more context for understanding bug reports (e.g., if |
| 564 |
the value in question was is the return value of a method, the |
| 565 |
method is described as the source of the value in a bug |
| 566 |
annotation). This also provide more accurate tracking of issues |
| 567 |
across versions of the code being analyzed, but has the downside |
| 568 |
that when comparing results from FindBugs 1.3.8 and FindBugs 1.3.9 |
| 569 |
on the same version of code being analyzed, FindBugs may think |
| 570 |
that mistakenly believe that the issue reported by 1.3.8 was fixed |
| 571 |
and a new issue was introduced that was reported by FindBugs |
| 572 |
1.3.9. While annoying, it would be unusual for more than a dozen |
| 573 |
issues per million lines of codes to be mistracked.</li> |
| 574 |
<li>Lots of internal changes moving towards FindBugs 2.0, but |
| 575 |
these features are undocumented, not yet officially supported, and |
| 576 |
subject to radical changes before FindBugs 2.0 is released.</li> |
| 577 |
</ul> |
| 578 |
|
| 579 |
<p>Changes since version 1.3.7</p> |
| 580 |
<ul> |
| 581 |
<li>Primarily another small bugfix release.</li> |
| 582 |
<li>FindBugs base: |
| 583 |
<ul> |
| 584 |
<li>New Reports: |
| 585 |
<ul> |
| 586 |
<li>SF_SWITCH_NO_DEFAULT: missing default case in switch |
| 587 |
statement.</li> |
| 588 |
<li>SF_DEAD_STORE_DUE_TO_SWITCH_FALLTHROUGH_TO_THROW: |
| 589 |
value ignored when switch fallthrough leads to thrown |
| 590 |
exception.</li> |
| 591 |
<li>INT_VACUOUS_BIT_OPERATION: bit operations that don't |
| 592 |
do any meaningful work.</li> |
| 593 |
<li>FB_UNEXPECTED_WARNING: warning generated that |
| 594 |
conflicts with @NoWarning FindBugs annotation.</li> |
| 595 |
<li>FB_MISSING_EXPECTED_WARNING: warning not generated |
| 596 |
despite presence of @ExpectedWarning FindBugs annotation.</li> |
| 597 |
<li>NOISE category: intended for use in data mining |
| 598 |
experiments. |
| 599 |
<ul> |
| 600 |
<li>NOISE_NULL_DEREFERENCE: fake null point dereference |
| 601 |
warning.</li> |
| 602 |
<li>NOISE_METHOD_CALL: fake method call warning.</li> |
| 603 |
<li>NOISE_FIELD_REFERENCE: fake field dereference |
| 604 |
warning.</li> |
| 605 |
<li>NOISE_OPERATION: fake operation warning.</li> |
| 606 |
</ul> |
| 607 |
</li> |
| 608 |
</ul> |
| 609 |
</li> |
| 610 |
<li>Other: |
| 611 |
<ul> |
| 612 |
<li>Garvin Leclaire has created a new Apache Maven |
| 613 |
repository for FindBugs at <a |
| 614 |
href="http://code.google.com/p/findbugs/">the Google Code |
| 615 |
FindBugs SVN repository</a>. (Thanks Garvin!) |
| 616 |
</li> |
| 617 |
</ul> |
| 618 |
</li> |
| 619 |
<li>Fixes: |
| 620 |
<ul> |
| 621 |
<li>[ 2317842 ] Highlighting broken in Windows</li> |
| 622 |
<li>[ 2515908 ] check for oddness should track sign of |
| 623 |
argument</li> |
| 624 |
<li>[ 2487936 ] "L B GC" false pos cast from |
| 625 |
Map.Entry.getKey() to Map.get()</li> |
| 626 |
<li>[ 2528264 ] Ant tasks not compatible with Ant 1.7.1</li> |
| 627 |
<li>[ 2539590 ] SF_SWITCH_FALLTHROUGH wrong message |
| 628 |
reported</li> |
| 629 |
<li>[ 2020066 ] Bug history displayed in fancy-hist.xsl is |
| 630 |
incorrect</li> |
| 631 |
<li>[ 2545098 ] Invalid character in analysis results file</li> |
| 632 |
<li>[ 2492673 ] Plugin sites should specify "requires |
| 633 |
Eclipse 3.3 or newer"</li> |
| 634 |
<li>[ 2588044 ] a tiny typing error</li> |
| 635 |
<li>[ 2589048 ] Documentation for convertXmlToText |
| 636 |
insufficient</li> |
| 637 |
<li>[ 2638739 ] NullPointerException when building</li> |
| 638 |
</ul> |
| 639 |
</li> |
| 640 |
<li>Patches: |
| 641 |
<ul> |
| 642 |
<li>[ 2538184 ] Make BugCollection implement |
| 643 |
Iterable<BugInstance> (thanks to Tomas Pollak)</li> |
| 644 |
<li>[ 2249771 ] Add Maven2 Findbugs plugin link to the |
| 645 |
Links page (thanks to Garvin Leclaire)</li> |
| 646 |
<li>[ 2609526 ] Japanese manual update (thanks to K. |
| 647 |
Hashimoto)</li> |
| 648 |
<li>[ 2119482 ] CheckBcel checks for nonexistent classes |
| 649 |
(thanks to Jerry James)</li> |
| 650 |
</ul> |
| 651 |
</li> |
| 652 |
</ul> |
| 653 |
</li> |
| 654 |
<li>FindBugs Eclipse plugin: |
| 655 |
<ul> |
| 656 |
<li>Major feature enhancements (thanks to Andrey Loskutov). |
| 657 |
See <a href="http://andrei.gmxhome.de/findbugs/index.html">this |
| 658 |
overview</a> for more information. |
| 659 |
</li> |
| 660 |
<li>Major test improvements (thanks to Tomas Pollak).</li> |
| 661 |
<li>Fixes: |
| 662 |
<ul> |
| 663 |
<li>[ 2532365 ] Compiler warning</li> |
| 664 |
<li>[ 2522989 ] Fix filter files selection</li> |
| 665 |
<li>[ 2504068 ] NullPointerException</li> |
| 666 |
<li>[ 2640849 ] NPE in Eclipse plugin 1.3.7 and Eclipse |
| 667 |
3.5 M5</li> |
| 668 |
</ul> |
| 669 |
</li> |
| 670 |
<li>Patches: |
| 671 |
<ul> |
| 672 |
<li>[ 2143140 ] Unchecked conversion fixes for Eclipse |
| 673 |
plugin (thanks to Jerry James) |
| 674 |
</ul> |
| 675 |
</li> |
| 676 |
</ul> |
| 677 |
</li> |
| 678 |
</ul> |
| 679 |
|
| 680 |
<p>Changes since version 1.3.6</p> |
| 681 |
<ul> |
| 682 |
<li>Overall, a small bugfix release. |
| 683 |
<li>New detection of accidental vacuous/useless calls to |
| 684 |
EasyMock methods, and of generic signatures that proclaim the use |
| 685 |
of unhashable classes in ways that require that they be hashed. |
| 686 |
<li>Eliminate some false positives where we were warning about |
| 687 |
a useless call (e.g., comparing two incompatible types for |
| 688 |
equality), but the only thing the code was doing with the result |
| 689 |
was passing it to assertFalse. |
| 690 |
<li>Japanese localization and manual by K.Hashimoto. (Thanks!) |
| 691 |
|
| 692 |
<li>Added -exclude and -outputDir command line options to |
| 693 |
rejarForAnalysis |
| 694 |
<li>Extended -adjustPriorities option to FindBugs analysis |
| 695 |
textui so that you can modify the priorities of individual bug |
| 696 |
patterns as well as visitors, and also completely suppress |
| 697 |
individual bug patterns or visitors. |
| 698 |
<ul> |
| 699 |
<li>e.g., -adjustPriority |
| 700 |
MS_SHOULD_BE_FINAL=suppress,MS_PKGPROTECT=suppress,EI_EXPOSE_REP=suppress,EI_EXPOSE_REP2=suppress,PZLA_PREFER_ZERO_LENGTH_ARRAYS=raise |
| 701 |
|
| 702 |
</ul> |
| 703 |
</ul> |
| 704 |
|
| 705 |
|
| 706 |
<p>Changes since version 1.3.5</p> |
| 707 |
<ul> |
| 708 |
<li>Added fairly exhaustive static analysis of uses of format |
| 709 |
strings, checking for missing or extra arguments, invalid format |
| 710 |
specifiers, or mismatched format specifiers and arguments (e.g, |
| 711 |
passing a String value for a %d format specifier). The logic for |
| 712 |
doing so is derived from Sun's java.util.Formatter class, and |
| 713 |
available separately from FindBugs as part of the <a |
| 714 |
href="https://jformatstring.dev.java.net/">jFormatString</a> |
| 715 |
project. |
| 716 |
<li>More tuning of the unsatisfied obligation detector. Since |
| 717 |
this detector is still rather noisy and an unfinished research |
| 718 |
project, I've moved the generated issues to a new category: |
| 719 |
EXPERIMENTAL. |
| 720 |
<li>Added check for <a |
| 721 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#BIT_ADD_OF_SIGNED_BYTE">BIT_ADD_OF_SIGNED_BYTE</a>; |
| 722 |
similar to <a |
| 723 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#BIT_IOR_OF_SIGNED_BYTE">BIT_IOR_OF_SIGNED_BYTE</a>, |
| 724 |
except that addition is being used to combine shifted signed |
| 725 |
bytes. |
| 726 |
<li>Changed detection of EI_EXPOSE_REP2, so we only report it |
| 727 |
if the value stored is guaranteed to be the same value that was |
| 728 |
passed in as a parameter. |
| 729 |
<li>Added <a |
| 730 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#EQ_CHECK_FOR_OPERAND_NOT_COMPATIBLE_WITH_THIS">EQ_CHECK_FOR_OPERAND_NOT_COMPATIBLE_WITH_THIS</a>, |
| 731 |
a warning when an equals method checks to see if an operand is an |
| 732 |
instance of a class not compatible with itself. For example, if |
| 733 |
the Foo class checks to see if the argument is an instance of |
| 734 |
String. This is either a questionable design decision or a coding |
| 735 |
mistake. |
| 736 |
<li>Added <a |
| 737 |
href="http://findbugs.sourceforge.net/bugDescriptions.html#DMI_INVOKING_HASHCODE_ON_ARRAY">DMI_INVOKING_HASHCODE_ON_ARRAY</a>, |
| 738 |
which checks for invoking <code>hashCode()</code> on an array, |
| 739 |
which returns a hash code that ignores the contents of the array. |
| 740 |
|
| 741 |
<li>Added checks for using <code>x.removeAll(x)</code> to |
| 742 |
rather than <code>x.clear()</code> to clear an array. |
| 743 |
<li>Add checks for calls such as <code>x.contains(x)</code>, <code>x.remove(x)</code> |
| 744 |
and <code>x.containsAll(x)</code>. |
| 745 |
<li>Improvements to Eclipse plugin (thanks to Andrey |
| 746 |
Loskutov): |
| 747 |
<ul> |
| 748 |
<li>Report separate markers for each occurrence of an issue |
| 749 |
that appears multiple times in a method |
| 750 |
<li>fine tuning for reported markers: add only one marker |
| 751 |
for fields, add marker on right position |
| 752 |
<li>link bugs selected in bug explorer view to the opened |
| 753 |
editor and vice versa |
| 754 |
<li>select bugs selected in editor ruler in the opened bug |
| 755 |
explorer view |
| 756 |
<li>consistent abbreviations used in both bug explorer and |
| 757 |
bug details view |
| 758 |
<li>added "Expand All" button to the bug explorer view |
| 759 |
<li>added "Go Into/Go Up" buttons to the bug explorer view |
| 760 |
<li>added "Copy to clipboard" menu/functionality to the |
| 761 |
details view list widget |
| 762 |
<li>fix for CNF exception if loading the backup solution for |
| 763 |
broken browser widget |
| 764 |
</ul> |
| 765 |
</ul> |
| 766 |
|
| 767 |
|
| 768 |
|
| 769 |
<p>Changes since version 1.3.4</p> |
| 770 |
<ul> |
| 771 |
<li>Analysis about 15% faster |
| 772 |
<li><a |
| 773 |
href="http://sourceforge.net/tracker/?atid=614693&group_id=96405&func=browse&status=closed">38 |
| 774 |
bugs closed</a></li> |
| 775 |
<li>New defect warnings: |
| 776 |
<ul> |
| 777 |
<li>calls to methods that always throw |
| 778 |
UnsupportedOperationException (DMI_UNSUPPORTED_METHOD) |
| 779 |
<li>repeated conditional tests (e.g., <code>if (x |
| 780 |
< 0 || x < 0) ...</code>) (RpC_REPEATED_CONDITIONAL_TEST) |
| 781 |
<li>Complete rewrite of detector for format string problems. |
| 782 |
More accurate, finds more problems, generates more descriptive |
| 783 |
reports, several different bug pattern |
| 784 |
(VA_FORMAT_STRING_EXTRA_ARGUMENTS_PASSED, |
| 785 |
VA_FORMAT_STRING_ILLEGAL, VA_FORMAT_STRING_MISSING_ARGUMENT, |
| 786 |
VA_FORMAT_STRING_BAD_ARGUMENT, |
| 787 |
VA_FORMAT_STRING_NO_PREVIOUS_ARGUMENT) |
| 788 |
<li>Fairly complete implementation of JSR-305 custom type |
| 789 |
qualifier analysis (no support for custom validators yet). |
| 790 |
(TQ_MAYBE_SOURCE_VALUE_REACHES_NEVER_SINK |
| 791 |
TQ_EXPLICIT_UNKNOWN_SOURCE_VALUE_REACHES_ALWAYS_SINK |
| 792 |
TQ_EXPLICIT_UNKNOWN_SOURCE_VALUE_REACHES_NEVER_SINK) |
| 793 |
<li>New detector for unsatisfied obligations such forgetting |
| 794 |
to close a file (OBL_UNSATISFIED_OBLIGATION). |
| 795 |
<li>Warning when a parameter is marked as nullable, but is |
| 796 |
always dereferenced. |
| 797 |
(NP_PARAMETER_MUST_BE_NONNULL_BUT_MARKED_AS_NULLABLE) |
| 798 |
<lI>Separate warning for dereference the result of readLine |
| 799 |
(NP_DEREFERENCE_OF_READLINE_VALUE) |
| 800 |
</ul> |
| 801 |
<li>When XML is generated with messages, the project stats now |
| 802 |
include <FileStat> elements. For each source file, this |
| 803 |
gives the path for the file, the total number of warnings for that |
| 804 |
file, and a bugHash for the file. While the instanceHash for a bug |
| 805 |
is intended to be version invariant (ignoring line numbers, etc), |
| 806 |
the bugHash for a file is intended to reflect all the information |
| 807 |
about the warnings in that file. The intended use case is that if |
| 808 |
the bugHash for a file is the same in two analysis runs, then <em>nothing</em> |
| 809 |
has changed about any of the warnings reported for that file |
| 810 |
between the two analysis runs. |
| 811 |
<li>More merging of similar issues within a method. For |
| 812 |
example, if the result of readLine() is dereferences multiple |
| 813 |
times within a method, it will be reported as a single warning |
| 814 |
with occurrences at multiple source lines. |
| 815 |
</ul> |
| 816 |
<p>Changes since version 1.3.3</p> |
| 817 |
|
| 818 |
<ul> |
| 819 |
<li>FindBugs base |
| 820 |
<ul> |
| 821 |
<li>New Reports: |
| 822 |
<ul> |
| 823 |
<li>EQ_OVERRIDING_EQUALS_NOT_SYMMETRIC: equals method |
| 824 |
overrides equals in superclass and may not be symmetric</li> |
| 825 |
<li>EQ_ALWAYS_TRUE: equals method always returns true</li> |
| 826 |
<li>EQ_ALWAYS_FALSE: equals method always returns false</li> |
| 827 |
<li>EQ_COMPARING_CLASS_NAMES: equals method compares class |
| 828 |
names rather than class objects</li> |
| 829 |
<li>EQ_UNUSUAL: Unusual equals method</li> |
| 830 |
<li>EQ_GETCLASS_AND_CLASS_CONSTANT: equals method fails |
| 831 |
for subtypes</li> |
| 832 |
<li>SE_READ_RESOLVE_IS_STATIC: The readResolve method must |
| 833 |
not be declared as a static method.</li> |
| 834 |
<li>SE_PRIVATE_READ_RESOLVE_NOT_INHERITED: private |
| 835 |
readResolve method not inherited by subclasses</li> |
| 836 |
<li>MSF_MUTABLE_SERVLET_FIELD: Mutable servlet field</li> |
| 837 |
<li>XSS_REQUEST_PARAMETER_TO_SEND_ERROR: Servlet reflected |
| 838 |
cross site scripting vulnerability</li> |
| 839 |
<li>SKIPPED_CLASS_TOO_BIG: Class too big for analysis</li> |
| 840 |
</ul> |
| 841 |
</li> |
| 842 |
<li>Other: |
| 843 |
<ul> |
| 844 |
<li>Value-number analysis now more space-efficient</li> |
| 845 |
<li>Enhancements to reduce memory overhead when analyzing |
| 846 |
very large classes</li> |
| 847 |
<li>Now skips very large classes that would otherwise take |
| 848 |
too much time and memory to analyze</li> |
| 849 |
<li>Infrastructure for tracking effectively-constant/ |
| 850 |
effectively-final fields</li> |
| 851 |
<li>Added more cweids</li> |
| 852 |
<li>Enhanced taint tracking for taint-based detectors</li> |
| 853 |
<li>Ignore doomed calls to equals if result is used as an |
| 854 |
argument to assertFalse</li> |
| 855 |
<li>EQ_OVERRIDING_EQUALS_NOT_SYMMETRIC handles compareTo</li> |
| 856 |
<li>Priority tweak for ICAST_INTEGER_MULTIPLY_CAST_TO_LONG |
| 857 |
(only low priority if multiplying by 1000)</li> |
| 858 |
<li>Improved tracking of fields across method calls</li> |
| 859 |
</ul> |
| 860 |
</li> |
| 861 |
<li>Fixes: |
| 862 |
<ul> |
| 863 |
<li>[ 1941450 ] DLS_DEAD_LOCAL_STORE not reported</li> |
| 864 |
<li>[ 1953323 ] Omitted break statement in |
| 865 |
SynchronizeAndNullCheckField</li> |
| 866 |
<li>[ 1942620 ] Source Directories selection dialog |
| 867 |
interface confusion (partial)</li> |
| 868 |
<li>[ 1948275 ] Unhelpful "Load of known null"</li> |
| 869 |
<li>[ 1933922 ] MWM error in findbugs</li> |
| 870 |
<li>[ 1934772 ] 1.3.3 appears to rely on JDK 1.6, JNLP |
| 871 |
still specifies 1.5</li> |
| 872 |
<li>[ 1933945 ] -loadbugs doesn't work</li> |
| 873 |
<li>Fixed problems for class names starting with '$'</li> |
| 874 |
<li>Fixed bugs and incomplete handling of annotations in |
| 875 |
VersionInsensitiveBugComparator</li> |
| 876 |
</ul> |
| 877 |
</li> |
| 878 |
<li>Patches: |
| 879 |
<ul> |
| 880 |
<li>[ 1955106 ] Javadoc fixes</li> |
| 881 |
<li>[ 1951930 ] Superfluous import statements (thanks to |
| 882 |
Jerry James)</li> |
| 883 |
<li>[ 1951907 ] Missing @Deprecated annotations (thanks to |
| 884 |
Jerry James)</li> |
| 885 |
<li>[ 1951876 ] Infonode Docking Windows compile fix |
| 886 |
(thanks to Jerry James)</li> |
| 887 |
<li>[ 1936055 ] bugfix for findbugs.de.comment not working |
| 888 |
(thanks to Peter Fokkinga) |
| 889 |
</ul> |
| 890 |
</li> |
| 891 |
</ul> |
| 892 |
<li>FindBugs BlueJ plugin |
| 893 |
<ul> |
| 894 |
<li>Updated to use FindBugs 1.3.4 (first new release since |
| 895 |
1.1.3)</li> |
| 896 |
</ul> |
| 897 |
</li> |
| 898 |
</ul> |
| 899 |
|
| 900 |
<p>Changes since version 1.3.2</p> |
| 901 |
|
| 902 |
<ul> |
| 903 |
<li>FindBugs base |
| 904 |
<ul> |
| 905 |
<li>New Detectors: |
| 906 |
<ul> |
| 907 |
<li>FieldItemSummary: Produces summary information for |
| 908 |
what is stored into fields</li> |
| 909 |
<li>SynchronizeOnClassLiteralNotGetClass: Look for code |
| 910 |
that synchronizes on the results of getClass rather than on |
| 911 |
class literals</li> |
| 912 |
<li>SynchronizingOnContentsOfFieldToProtectField: This |
| 913 |
detector looks for code that seems to be synchronizing on a |
| 914 |
field in order to guard updates of that field</li> |
| 915 |
</ul> |
| 916 |
</li> |
| 917 |
<li>New BugCode: |
| 918 |
<ul> |
| 919 |
<li>HRS: HTTP Response splitting vulnerability</li> |
| 920 |
<li>WL: Possible locking on wrong object</li> |
| 921 |
</ul> |
| 922 |
</li> |
| 923 |
<li>New Reports: |
| 924 |
<ul> |
| 925 |
<li>DMI_CONSTANT_DB_PASSWORD: This code creates a database |
| 926 |
connect using a hard coded, constant password</li> |
| 927 |
<li>HRS_REQUEST_PARAMETER_TO_COOKIE: HTTP cookie formed |
| 928 |
from untrusted input</li> |
| 929 |
<li>HRS_REQUEST_PARAMETER_TO_HTTP_HEADER: HTTP parameter |
| 930 |
directly written to HTTP header output</li> |
| 931 |
<li>CN_IMPLEMENTS_CLONE_BUT_NOT_CLONEABLE: Class defines |
| 932 |
clone() but doesn't implement Cloneable</li> |
| 933 |
<li>DL_SYNCHRONIZATION_ON_BOXED_PRIMITIVE: Synchronization |
| 934 |
on boxed primitive could lead to deadlock</li> |
| 935 |
<li>DL_SYNCHRONIZATION_ON_BOOLEAN: Synchronization on |
| 936 |
Boolean could lead to deadlock</li> |
| 937 |
<li>ML_SYNC_ON_FIELD_TO_GUARD_CHANGING_THAT_FIELD: |
| 938 |
Synchronization on field in futile attempt to guard that field |
| 939 |
</li> |
| 940 |
<li>DLS_DEAD_LOCAL_STORE_IN_RETURN: Useless assignment in |
| 941 |
return statement</li> |
| 942 |
<li>WL_USING_GETCLASS_RATHER_THAN_CLASS_LITERAL: |
| 943 |
Synchronization on getClass rather than class literal</li> |
| 944 |
</ul> |
| 945 |
</li> |
| 946 |
<li>Other: |
| 947 |
<ul> |
| 948 |
<li>Many enhancements to cross-site scripting detector and |
| 949 |
its documentation</li> |
| 950 |
<li>Enhanced switch fall through handling</li> |
| 951 |
<li>Enhanced unread field handling (look for IF_ACMPEQ and |
| 952 |
IF_ACMPNE)</li> |
| 953 |
<li>Clarified documentation for @Nullable in manual</li> |
| 954 |
<li>Fewer DeadLocalStore false positives</li> |
| 955 |
<li>Fewer UnreadField false positives</li> |
| 956 |
<li>Fewer StaticCalendarDetector false positives</li> |
| 957 |
<li>Performance fix for slow file system IO e.g. Clearcase |
| 958 |
repositories (thanks, Andrei!)</li> |
| 959 |
<li>Other, general performance enhancements (thanks, |
| 960 |
Andrei!)</li> |
| 961 |
<li>Enhancements for using FindBugs scripts with MKS on |
| 962 |
Windows (thanks, Kelly O'Hair!)</li> |
| 963 |
<li>Noted in the manual that jsr305.jar must be present |
| 964 |
for annotations to compile</li> |
| 965 |
<li>Added and fine-tuned default-nullness annotations</li> |
| 966 |
<li>More CWE IDs added</li> |
| 967 |
<li>Check and warning for unexpected BCEL version in |
| 968 |
classpath</li> |
| 969 |
</ul> |
| 970 |
</li> |
| 971 |
<li>Fixes: |
| 972 |
<ul> |
| 973 |
<li>Bug fix to handling of local variable tables in BCEL</li> |
| 974 |
<li>Refined documentation for |
| 975 |
MTIA_SUSPECT_STRUTS_INSTANCE_FIELD</li> |
| 976 |
<li>[ 1927295 ] NPE when called on project root</li> |
| 977 |
<li>[ 1926405 ] Incorrect dead store warning</li> |
| 978 |
<li>[ 1926409 ] Incorrect redundant nullcheck warning</li> |
| 979 |
<li>[ 1926389 ] Wrong line number printed/highlighted in |
| 980 |
bug</li> |
| 981 |
<li>[ 1927040 ] typo in bug description</li> |
| 982 |
<li>[ 1926263 ] Minor glitch in HTML output</li> |
| 983 |
<li>[ 1926240 ] Minor error in standard options in manual</li> |
| 984 |
<li>[ 1926236 ] Minor bug in installation section of |
| 985 |
manual</li> |
| 986 |
<li>[ 1925539 ] ZIP is default file system code base</li> |
| 987 |
<li>[ 1894701 ] Livelock / memory leak in |
| 988 |
ObjectTypeFactory (thanks, Andrei!)</li> |
| 989 |
<li>[ 1867491 ] Doesn't reload annotations after code |
| 990 |
changes in IDE (thanks, Andrei!)</li> |
| 991 |
<li>[ 1921399 ] -project option not supported</li> |
| 992 |
<li>[ 1913834 ] "Dead" store to variable with method call</li> |
| 993 |
<li>[ 1917352 ] H B se:...field in serializable class</li> |
| 994 |
<li>[ 1911617 ] CloneIdiom relies on |
| 995 |
getNameConstantOperand for INSTANCEOF</li> |
| 996 |
<li>[ 1911620 ] False +: DLS predecrement before return</li> |
| 997 |
<li>[ 1871376 ] False negative: non-serializable Map field</li> |
| 998 |
<li>[ 1871051 ] non standard clone() method</li> |
| 999 |
<li>[ 1908854 ] Error in TestASM</li> |
| 1000 |
<li>[ 1907539 ] 22 minor errors in bug checker |
| 1001 |
documentation</li> |
| 1002 |
<li>[ 1897323 ] EJB implementation class false positives</li> |
| 1003 |
<li>[ 1899648 ] Crash on startup on Vista with Java |
| 1004 |
1.6.0_04</li> |
| 1005 |
</ul> |
| 1006 |
</li> |
| 1007 |
</ul> |
| 1008 |
</li> |
| 1009 |
<li>FindBugs Eclipse plugin (change log by Andrey Loskutov) |
| 1010 |
<ul> |
| 1011 |
<li>new feature: export basic FindBugs numbers for projects |
| 1012 |
via File->Export->Java->BugCounts (Andrey Loskutov)</li> |
| 1013 |
<li>new feature: jobs for different projects will be run in |
| 1014 |
parallel per default if running on a multi-core PC |
| 1015 |
("fb.allowParallelBuild" system property not used anymore) |
| 1016 |
(Andrey Loskutov)</li> |
| 1017 |
<li>fixed performance slowdown in the multi-threaded build, |
| 1018 |
caused by workspace operation locks during assigning marker |
| 1019 |
attributes (Andrey Loskutov)</li> |
| 1020 |
</ul> |
| 1021 |
</li> |
| 1022 |
</ul> |
| 1023 |
|
| 1024 |
<p>Changes since version 1.3.1</p> |
| 1025 |
|
| 1026 |
<ul> |
| 1027 |
<li>FindBugs base |
| 1028 |
<ul> |
| 1029 |
<li>New Bug Category: |
| 1030 |
<ul> |
| 1031 |
<li>SECURITY (Abbrev: S), A use of untrusted input in a |
| 1032 |
way that could create a remotely exploitable security |
| 1033 |
vulnerability</li> |
| 1034 |
</ul> |
| 1035 |
</li> |
| 1036 |
<li>New Detectors: |
| 1037 |
<ul> |
| 1038 |
<li>CrossSiteScripting: This detector looks for |
| 1039 |
obvious/blatant cases of cross site scripting vulnerabilities</li> |
| 1040 |
</ul> |
| 1041 |
</li> |
| 1042 |
<li>New BugCode: |
| 1043 |
<ul> |
| 1044 |
<li>XSS: Cross site scripting</li> |
| 1045 |
</ul> |
| 1046 |
</li> |
| 1047 |
<li>New Reports: |
| 1048 |
<ul> |
| 1049 |
<li>XSS_REQUEST_PARAMETER_TO_SERVLET_WRITER: HTTP |
| 1050 |
parameter directly written to Servlet output, giving XSS |
| 1051 |
vulnerability</li> |
| 1052 |
<li>XSS_REQUEST_PARAMETER_TO_JSP_WRITER: HTTP parameter |
| 1053 |
directly written to JSP output, giving XSS vulnerability</li> |
| 1054 |
<li>EQ_OTHER_USE_OBJECT: equals() method defined that |
| 1055 |
doesn't override Object.equals(Object)</li> |
| 1056 |
<li>EQ_OTHER_NO_OBJECT: equals() method inherits rather |
| 1057 |
than overrides equals(Object)</li> |
| 1058 |
<li>NP_NULL_ON_SOME_PATH_MIGHT_BE_INFEASIBLE: Possible |
| 1059 |
null pointer dereference on path that might be infeasible</li> |
| 1060 |
</ul> |
| 1061 |
</li> |
| 1062 |
<li>Other: |
| 1063 |
<ul> |
| 1064 |
<li>Added -noClassOk command-line parameter to |
| 1065 |
command-line and ant interfaces; when -noClassOk is specified |
| 1066 |
and no classfiles are given, FindBugs will print a warning |
| 1067 |
message and output a well- formed file with no warnings</li> |
| 1068 |
<li>Fewer false positives for null pointer bugs</li> |
| 1069 |
<li>Suppress dead-local-store false positives in .jsp code</li> |
| 1070 |
<li>Type fixes in warning messages</li> |
| 1071 |
<li>Better warning message for NP_NULL_ON_SOME_PATH</li> |
| 1072 |
<li>"WMI" bug code description renamed from "Wrong Map |
| 1073 |
Iterator" to "Inefficient Map Iterator"</li> |
| 1074 |
</ul> |
| 1075 |
</li> |
| 1076 |
<li>Fixes: |
| 1077 |
<ul> |
| 1078 |
<li>[ 1893048 ] FindBugs confused by a findbugs.xml file</li> |
| 1079 |
<li>[ 1878528 ] XSL xforms don't support history features</li> |
| 1080 |
<li>[ 1876584 ] two default.xsl flaws</li> |
| 1081 |
<li>[ 1874856 ] Format string bug detector doesn't handle |
| 1082 |
special operators</li> |
| 1083 |
<li>[ 1872645 ] computeBugHistory - |
| 1084 |
java.lang.IllegalArgumentException</li> |
| 1085 |
<li>[ 1872237 ] Ant task fails when no .class files</li> |
| 1086 |
<li>[ 1868670 ] Filters: include AND exclude don't allowed</li> |
| 1087 |
<li>[ 1868666 ] check-for-oddness reported, but array |
| 1088 |
length can never be negative</li> |
| 1089 |
<li>[ 1866108 ] SetBugDatabaseInfoTask strips dir from |
| 1090 |
output filename</li> |
| 1091 |
<li>[ 1866021 ] MineBugHistoryTask strips dir of output |
| 1092 |
filename</li> |
| 1093 |
<li>[ 1865265 ] code doesn't handle |
| 1094 |
StringBuffer.append([CII) right</li> |
| 1095 |
<li>[ 1864793 ] Warning when casting a null reference |
| 1096 |
compared to a String</li> |
| 1097 |
<li>[ 1863376 ] Typo in manual chap 8: Filter Files</li> |
| 1098 |
<li>[ 1862705 ] Transient fields that default to null</li> |
| 1099 |
<li>[ 1842545 ] DLS on catch variable (with priority |
| 1100 |
tweaking)</li> |
| 1101 |
<li>[ 1816258 ] false positive BC_IMPOSSIBLE_CAST</li> |
| 1102 |
<li>[ 1551732 ] Get erroneous DLS with while loop</li> |
| 1103 |
</ul> |
| 1104 |
</li> |
| 1105 |
</ul> |
| 1106 |
</li> |
| 1107 |
<li>FindBugs Eclipse plugin (change log by Andrey Loskutov) |
| 1108 |
<ul> |
| 1109 |
<li>new feature: added Bug explorer view (replacing Bug tree |
| 1110 |
view), based on Common Navigator framework (Andrey Loskutov)</li> |
| 1111 |
<li>bug 1873860 fixed: empty projects are no longer shown in |
| 1112 |
Bug tree view (Andrey Loskutov)</li> |
| 1113 |
<li>new feature: bug counts decorators for projects, folders |
| 1114 |
and files (has to be activated via Preferences -> general |
| 1115 |
-> appearance -> label decorations)(Andrey Loskutov)</li> |
| 1116 |
<li>patch 1746499: better icons (Alessandro Nistico)</li> |
| 1117 |
<li>patch 1893685: Find bug actions on change sets bug |
| 1118 |
(Alessandro Nistico)</li> |
| 1119 |
<li>fixed bug 1855384: Bug configuration is broken in |
| 1120 |
Eclipse (Andrey Loskutov)</li> |
| 1121 |
<li>refactored FindBugs properties page (Andrey Loskutov)</li> |
| 1122 |
<li>refactored FindBugs worker/builder/run action (Andrey |
| 1123 |
Loskutov)</li> |
| 1124 |
<li>FB detects now only bugs from classes on project's |
| 1125 |
classpath (no double work on duplicated class files) (Andrey |
| 1126 |
Loskutov)</li> |
| 1127 |
<li>fixed bug introduced by the bad patch for 1867951: FB |
| 1128 |
cannot be executed incrementally on a folder of file (Andrey |
| 1129 |
Loskutov)</li> |
| 1130 |
<li>fixed job rule: now jobs for different projects may run |
| 1131 |
in parallel if running on a multi-core PC and |
| 1132 |
"fb.allowParallelBuild" system property is set to true (Andrey |
| 1133 |
Loskutov)</li> |
| 1134 |
<li>fixed FB auto-build not started if .fbprefs or |
| 1135 |
.classpath was changed (Andrey Loskutov)</li> |
| 1136 |
<li>fixed not reporting bugs on secondary types (classes |
| 1137 |
defined in java files with different name) (Andrey Loskutov)</li> |
| 1138 |
</ul> |
| 1139 |
</li> |
| 1140 |
</ul> |
| 1141 |
|
| 1142 |
<p>Changes since version 1.3.0</p> |
| 1143 |
<ul> |
| 1144 |
<li>New Reports |
| 1145 |
<ul> |
| 1146 |
<li>VA_FORMAT_STRING_ARG_MISMATCH: A format-string method |
| 1147 |
with a variable number of arguments is called, but the number of |
| 1148 |
arguments passed does not match with the number of % |
| 1149 |
placeholders in the format string. This is probably not what the |
| 1150 |
author intended. |
| 1151 |
<li>IO_APPENDING_TO_OBJECT_OUTPUT_STREAM: This code opens a |
| 1152 |
file in append mode and that wraps the result in an object |
| 1153 |
output stream. This won't allow you to append to an existing |
| 1154 |
object output stream stored in a file. If you want to be able to |
| 1155 |
append to an object output stream, you need to keep the object |
| 1156 |
output stream open. The only situation in which opening a file |
| 1157 |
in append mode and the writing an object output stream could |
| 1158 |
work is if on reading the file you plan to open it in random |
| 1159 |
access mode and seek to the byte offset where the append |
| 1160 |
started. |
| 1161 |
<li>NP_BOOLEAN_RETURN_NULL: A method that returns either |
| 1162 |
Boolean.TRUE, Boolean.FALSE or null is an accident waiting to |
| 1163 |
happen. This method can be invoked as though it returned a value |
| 1164 |
of type boolean, and the compiler will insert automatic unboxing |
| 1165 |
of the Boolean value. If a null value is returned, this will |
| 1166 |
result in a NullPointerException. |
| 1167 |
</ul> |
| 1168 |
</li> |
| 1169 |
<li>Changes to Existing Reports |
| 1170 |
<ul> |
| 1171 |
<li>RV_DONT_JUST_NULL_CHECK_READLINE: CORRECTNESS -> |
| 1172 |
STYLE</li> |
| 1173 |
<li>DMI_INVOKING_TOSTRING_ON_ARRAY: Long description |
| 1174 |
mentions array name whenever possible</li> |
| 1175 |
</ul> |
| 1176 |
</li> |
| 1177 |
<li>Fixes: |
| 1178 |
<ul> |
| 1179 |
<li>Updated manual to mention that Java 1.5 is now a |
| 1180 |
requirement for running FindBugs |
| 1181 |
<li>Applied patch 1840206 fixing issue "Ant task does not |
| 1182 |
work when presetdef is used" - thanks to phejl |
| 1183 |
<li>Applied patch 1778690 fixing issue "Ant task: tolerate |
| 1184 |
but complain about invalid auxClasspath" - thanks to David |
| 1185 |
Schmidt |
| 1186 |
<li>Applied patch 1852125 adding a Chinese-language GUI |
| 1187 |
bundle props file - thanks to fifi |
| 1188 |
<li>Applied patch 1845903 adding ability to load XML results |
| 1189 |
with the Eclipse plugin - thanks to Alex Mont |
| 1190 |
<li>Fixed issue 1844671 - "FP for "reversed" null check in |
| 1191 |
catch for stream close" |
| 1192 |
<li>Fixed issue 1836050 - "-onlyAnalyze broken" |
| 1193 |
<li>Fixed issue 1853011 - "Typo: Field names should start |
| 1194 |
with aN lower case letter" |
| 1195 |
<li>Fixed issue 1844181 - "JNLP file does not contain all |
| 1196 |
necessary JARs" |
| 1197 |
<li>Fixed issue 1840245 - "xxxException class does not |
| 1198 |
derive from Exception" |
| 1199 |
<li>Fixed issue 1840277 - "[M D EC] Typo in bug |
| 1200 |
documentation" |
| 1201 |
<li>Fixed issue 1782447 - "OutOfMemoryError if i activate |
| 1202 |
Findbugs on my project" |
| 1203 |
<li>Fixed issue 1830576 - "[regression] keySet/entrySet |
| 1204 |
false positive" |
| 1205 |
</ul> |
| 1206 |
</li> |
| 1207 |
<li>Other: |
| 1208 |
<ul> |
| 1209 |
<li>New bug code: "IO" (for |
| 1210 |
IO_APPENDING_TO_OBJECT_OUTPUT_STREAM)</li> |
| 1211 |
<li>Added "-onlyMostRecent" option for computeBugHistory |
| 1212 |
script/ant task |
| 1213 |
<li>More explicit language in |
| 1214 |
RV_RETURN_VALUE_IGNORED_BAD_PRACTICE messages |
| 1215 |
<li>Modified ResourceValueAnalysis to correctly identify |
| 1216 |
null == X or null != X as a null check (for issue 1844671) |
| 1217 |
<li>Modified DMI_HARDCODED_ABSOLUTE_FILENAME logic in |
| 1218 |
DumbMethodInvocations to ignore files from /etc or /dev and |
| 1219 |
increase priority of files from /home |
| 1220 |
<li>Better bug details for infinite loop warnings |
| 1221 |
<li>Modified unread-fields detector to reduce false |
| 1222 |
positives from reflective fields |
| 1223 |
<li>build.xml "classes" target now builds all sources in one |
| 1224 |
step |
| 1225 |
</ul> |
| 1226 |
</li> |
| 1227 |
</ul> |
| 1228 |
|
| 1229 |
<p>Changes since version 1.2.1</p> |
| 1230 |
<ul> |
| 1231 |
<li>New Detectors and Reports |
| 1232 |
<ul> |
| 1233 |
<li>SynchronizationOnSharedBuiltinConstant |
| 1234 |
<ul> |
| 1235 |
<li>DL_SYNCHRONIZATION_ON_SHARED_CONSTANT: The code |
| 1236 |
synchronizes on a shared primitive constant, such as an |
| 1237 |
interned String. Such constants are interned and shared across |
| 1238 |
all other classes loaded by the JVM. Thus, this could be |
| 1239 |
locking on something that other code might also be locking. |
| 1240 |
This could result in very strange and hard to diagnose |
| 1241 |
blocking and deadlock behavior. See <a |
| 1242 |
href="http://www.javalobby.org/java/forums/t96352.html">http://www.javalobby.org/java/forums/t96352.html</a> |
| 1243 |
and <a href="http://jira.codehaus.org/browse/JETTY-352">http://jira.codehaus.org/browse/JETTY-352</a>. |
| 1244 |
|
| 1245 |
</ul> |
| 1246 |
</li> |
| 1247 |
<li>OverridingEqualsNotSymmetrical |
| 1248 |
<ul> |
| 1249 |
<li>EQ_OVERRIDING_EQUALS_NOT_SYMMETRIC: Looks for equals |
| 1250 |
methods that override equals methods in a superclass where the |
| 1251 |
equivalence relationship might not be symmetrical. |
| 1252 |
</ul> |
| 1253 |
</li> |
| 1254 |
<li>CheckTypeQualifiers |
| 1255 |
<ul> |
| 1256 |
<li>TQ_ALWAYS_VALUE_USED_WHERE_NEVER_REQUIRED: A value |
| 1257 |
specified as carrying a type qualifier annotation is consumed |
| 1258 |
in a location or locations requiring that the value not carry |
| 1259 |
that annotation. More precisely, a value annotated with a type |
| 1260 |
qualifier specifying when=ALWAYS is guaranteed to reach a use |
| 1261 |
or uses where the same type qualifier specifies when=NEVER.</li> |
| 1262 |
<li>TQ_NEVER_VALUE_USED_WHERE_ALWAYS_REQUIRED: A value |
| 1263 |
specified as not carrying a type qualifier annotation is |
| 1264 |
guaranteed to be consumed in a location or locations requiring |
| 1265 |
that the value does carry that annotation. More precisely, a |
| 1266 |
value annotated with a type qualifier specifying when=NEVER is |
| 1267 |
guaranteed to reach a use or uses where the same type |
| 1268 |
qualifier specifies when=ALWAYS.</li> |
| 1269 |
<li>TQ_MAYBE_SOURCE_VALUE_REACHES_ALWAYS_SINK: A value |
| 1270 |
that might not carry a type qualifier annotation reaches a use |
| 1271 |
which requires that annotation.</li> |
| 1272 |
<li>TQ_MAYBE_SOURCE_VALUE_REACHES_NEVER_SINK: A value |
| 1273 |
which might carry a type qualifier annotation reaches a use |
| 1274 |
which forbids values carrying that annotation.</li> |
| 1275 |
</ul> |
| 1276 |
</li> |
| 1277 |
</ul> |
| 1278 |
</li> |
| 1279 |
<li>New Reports (existing detectors) |
| 1280 |
<ul> |
| 1281 |
<li>FindHEmismatch |
| 1282 |
<ul> |
| 1283 |
<li>EQ_DOESNT_OVERRIDE_EQUALS: This class extends a class |
| 1284 |
that defines an equals method and adds fields, but doesn't |
| 1285 |
define an equals method itself. Thus, equality on instances of |
| 1286 |
this class will ignore the identity of the subclass and the |
| 1287 |
added fields. Be sure this is what is intended, and that you |
| 1288 |
don't need to override the equals method. Even if you don't |
| 1289 |
need to override the equals method, consider overriding it |
| 1290 |
anyway to document the fact that the equals method for the |
| 1291 |
subclass just return the result of invoking super.equals(o).</li> |
| 1292 |
</ul> |
| 1293 |
</li> |
| 1294 |
<li>Naming |
| 1295 |
<ul> |
| 1296 |
<li>NM_WRONG_PACKAGE, NM_WRONG_PACKAGE_INTENTIONAL: The |
| 1297 |
method in the subclass doesn't override a similar method in a |
| 1298 |
superclass because the type of a parameter doesn't exactly |
| 1299 |
match the type of the corresponding parameter in the |
| 1300 |
superclass.</li> |
| 1301 |
<li>NM_SAME_SIMPLE_NAME_AS_SUPERCLASS: This class has a |
| 1302 |
simple name that is identical to that of its superclass, |
| 1303 |
except that its superclass is in a different package (e.g., <code>alpha.Foo</code> |
| 1304 |
extends <code>beta.Foo</code>). This can be exceptionally |
| 1305 |
confusing, create lots of situations in which you have to look |
| 1306 |
at import statements to resolve references and creates many |
| 1307 |
opportunities to accidentally define methods that do not |
| 1308 |
override methods in their superclasses. |
| 1309 |
</li> |
| 1310 |
<li>NM_SAME_SIMPLE_NAME_AS_INTERFACE: This class/interface |
| 1311 |
has a simple name that is identical to that of an |
| 1312 |
implemented/extended interface, except that the interface is |
| 1313 |
in a different package (e.g., <code>alpha.Foo</code> extends <code>beta.Foo</code>). |
| 1314 |
This can be exceptionally confusing, create lots of situations |
| 1315 |
in which you have to look at import statements to resolve |
| 1316 |
references and creates many opportunities to accidentally define |
| 1317 |
methods that do not override methods in their superclasses. |
| 1318 |
</li> |
| 1319 |
</ul> |
| 1320 |
<li>FindRefComparison |
| 1321 |
<ul> |
| 1322 |
<li>EC_UNRELATED_TYPES_USING_POINTER_EQUALITY: This method |
| 1323 |
uses using pointer equality to compare two references that |
| 1324 |
seem to be of different types. The result of this comparison |
| 1325 |
will always be false at runtime.</li> |
| 1326 |
</ul> |
| 1327 |
</li> |
| 1328 |
<li>IncompatMask |
| 1329 |
<ul> |
| 1330 |
<li>BIT_SIGNED_CHECK, BIT_SIGNED_CHECK_HIGH_BIT: This |
| 1331 |
method compares an expression such as <tt>((event.detail |
| 1332 |
& SWT.SELECTED) > 0)</tt>. Using bit arithmetic and then |
| 1333 |
comparing with the greater than operator can lead to |
| 1334 |
unexpected results (of course depending on the value of |
| 1335 |
SWT.SELECTED). If SWT.SELECTED is a negative number, this is a |
| 1336 |
candidate for a bug. Even when SWT.SELECTED is not negative, |
| 1337 |
it seems good practice to use '!= 0' instead of '> 0'. |
| 1338 |
</li> |
| 1339 |
</ul> |
| 1340 |
</li> |
| 1341 |
<li>LazyInit |
| 1342 |
<ul> |
| 1343 |
<li>LI_LAZY_INIT_UPDATE_STATIC: This method contains an |
| 1344 |
unsynchronized lazy initialization of a static field. After |
| 1345 |
the field is set, the object stored into that location is |
| 1346 |
further accessed. The setting of the field is visible to other |
| 1347 |
threads as soon as it is set. If the further accesses in the |
| 1348 |
method that set the field serve to initialize the object, then |
| 1349 |
you have a <em>very serious</em> multithreading bug, unless |
| 1350 |
something else prevents any other thread from accessing the |
| 1351 |
stored object until it is fully initialized. |
| 1352 |
</li> |
| 1353 |
</ul> |
| 1354 |
</li> |
| 1355 |
<li>FindDeadLocalStores |
| 1356 |
<ul> |
| 1357 |
<li>DLS_DEAD_STORE_OF_CLASS_LITERAL: This instruction |
| 1358 |
assigns a class literal to a variable and then never uses it. |
| 1359 |
<a href="//java.sun.com/j2se/1.5.0/compatibility.html#literal">The |
| 1360 |
behavior of this differs in Java 1.4 and in Java 5.</a> In Java |
| 1361 |
1.4 and earlier, a reference to <code>Foo.class</code> would |
| 1362 |
force the static initializer for <code>Foo</code> to be |
| 1363 |
executed, if it has not been executed already. In Java 5 and |
| 1364 |
later, it does not. See Sun's <a |
| 1365 |
href="//java.sun.com/j2se/1.5.0/compatibility.html#literal">article |
| 1366 |
on Java SE compatibility</a> for more details and examples, and |
| 1367 |
suggestions on how to force class initialization in Java 5. |
| 1368 |
</li> |
| 1369 |
</ul> |
| 1370 |
</li> |
| 1371 |
<li>MethodReturnCheck |
| 1372 |
<ul> |
| 1373 |
<li>RV_RETURN_VALUE_IGNORED_BAD_PRACTICE: This method |
| 1374 |
returns a value that is not checked. The return value should |
| 1375 |
be checked since it can indication an unusual or unexpected |
| 1376 |
function execution. For example, the <code>File.delete()</code> |
| 1377 |
method returns false if the file could not be successfully |
| 1378 |
deleted (rather than throwing an Exception). If you don't |
| 1379 |
check the result, you won't notice if the method invocation |
| 1380 |
signals unexpected behavior by returning an atypical return |
| 1381 |
value. |
| 1382 |
</li> |
| 1383 |
<li>RV_EXCEPTION_NOT_THROWN: This code creates an |
| 1384 |
exception (or error) object, but doesn't do anything with it. |
| 1385 |
</li> |
| 1386 |
</ul> |
| 1387 |
</li> |
| 1388 |
</ul> |
| 1389 |
</li> |
| 1390 |
<li>Changes to Existing Reports |
| 1391 |
<ul> |
| 1392 |
<li>NS_NON_SHORT_CIRCUIT: BAD_PRACTICE -> STYLE</li> |
| 1393 |
<li>NS_DANGEROUS_NON_SHORT_CIRCUIT: CORRECTNESS -> STYLE</li> |
| 1394 |
<li>RC_REF_COMPARISON: CORRECTNESS -> BAD_PRACTICE</li> |
| 1395 |
</ul> |
| 1396 |
</li> |
| 1397 |
<li>GUI Changes |
| 1398 |
<ul> |
| 1399 |
<li>Added importing and exporting of bug filters</li> |
| 1400 |
<li>Better handling of failed analysis runs</li> |
| 1401 |
<li>Added "-look" parameter for selecting look-and-feel</li> |
| 1402 |
<li>Fixed incorrect package filtering</li> |
| 1403 |
<li>Fixed issue where "synchronized" was not |
| 1404 |
syntax-highlighted</li> |
| 1405 |
</ul> |
| 1406 |
</li> |
| 1407 |
<li>Ant-task Changes |
| 1408 |
<ul> |
| 1409 |
<li>Refactored common ant-task code to AbstractFindBugsTask</li> |
| 1410 |
<li>Added tasks for computeBugHistory, convertXmlToText, |
| 1411 |
filterBugs, mineBugHistory, setBugDatabaseInfo</li> |
| 1412 |
</ul> |
| 1413 |
</li> |
| 1414 |
<li>Manual |
| 1415 |
<ul> |
| 1416 |
<li>Updates to GUI section, including new screenshots</li> |
| 1417 |
<li>Added description of rejarForAnalysis</li> |
| 1418 |
<li>Revamp of data-mining section</li> |
| 1419 |
</ul> |
| 1420 |
</li> |
| 1421 |
<li>Other Major |
| 1422 |
<ul> |
| 1423 |
<li>Internal restructuring for lower memory overhead</li> |
| 1424 |
</ul> |
| 1425 |
</li> |
| 1426 |
<li>Other Minor |
| 1427 |
<ul> |
| 1428 |
<li>Fixed typo: was STCAL_STATIC_SIMPLE_DATA_FORMAT_INSTANCE |
| 1429 |
now STCAL_STATIC_SIMPLE_DATE_FORMAT_INSTANCE</li> |
| 1430 |
<li>-outputFile parameter became -output</li> |
| 1431 |
<li>More sensitivity and specificity inLazyInit detector</li> |
| 1432 |
<li>More sensitivity and specificity in Naming detector</li> |
| 1433 |
<li>More sensitivity and specificity in UnreadFields |
| 1434 |
detector</li> |
| 1435 |
<li>More sensitivity in FindNullDeref detector</li> |
| 1436 |
<li>More sensitivity in FindBadCast2 detector</li> |
| 1437 |
<li>More specificity in FindReturnRef detector</li> |
| 1438 |
<li>Many other tweaks and bug fixes</li> |
| 1439 |
</ul> |
| 1440 |
</li> |
| 1441 |
</ul> |
| 1442 |
|
| 1443 |
<p>Changes since version 1.2.0</p> |
| 1444 |
<ul> |
| 1445 |
<li>Bug fixes: |
| 1446 |
<ul> |
| 1447 |
<li><a |
| 1448 |
href="http://fisheye2.cenqua.com/changelog/findbugs/?cs=8219">Fix</a> |
| 1449 |
<a |
| 1450 |
href="http://sourceforge.net/tracker/index.php?func=detail&aid=1726946&group_id=96405&atid=614693">bug</a> |
| 1451 |
with detectors that were requested to be disabled but were |
| 1452 |
enabled due to requirements of other detectors.</li> |
| 1453 |
<li>Fix bugs in incremental analysis within Eclipse plugin</li> |
| 1454 |
<li>Fix some analysis errors</li> |
| 1455 |
<li>Fix some threading bugs in GUI2</li> |
| 1456 |
<li>Report version as version when it was compiled, not when |
| 1457 |
it was run</li> |
| 1458 |
<li>Copy analysis time stamp when filtering or transforming |
| 1459 |
analysis files.</li> |
| 1460 |
</ul> |
| 1461 |
<li>Enabled StaticCalendarDetector</li> |
| 1462 |
<li>Reworked GUI2 to use standard FindBugs filters |
| 1463 |
<ul> |
| 1464 |
<li>Allow a suppression filter to be stored in a project and |
| 1465 |
persisted to the XML representation of a project.</li> |
| 1466 |
</ul> |
| 1467 |
</li> |
| 1468 |
|
| 1469 |
<li>Move away from old GUI2 save format (a directory |
| 1470 |
containing an xml file and another file containing serialized |
| 1471 |
filters).</li> |
| 1472 |
<li>Support/recommend use of two new file extensions/formats: |
| 1473 |
<dl> |
| 1474 |
<dt>.fba - FindBugs Analysis File</dt> |
| 1475 |
<dd>Exactly the same as an existing bug collection file |
| 1476 |
stored in XML format, but using a distinct file extension to |
| 1477 |
make it easier to figure out which xml files contain FindBugs |
| 1478 |
results.</dd> |
| 1479 |
<dt>.fbp - FindBugs Project File</dt> |
| 1480 |
<dd>Contains just the information needed to run FindBugs and |
| 1481 |
display the results (e.g., the files to be analyzed, the |
| 1482 |
auxiliary class path and the location of source files) |
| 1483 |
</dl> |
| 1484 |
</li> |
| 1485 |
</ul> |
| 1486 |
<p>Changes since version 1.1.3</p> |
| 1487 |
<ul> |
| 1488 |
<li>Added -xml:withAbridgedMessages option to generate xml |
| 1489 |
containing shorter messages. The messages will be shorted by doing |
| 1490 |
things like eliding package names, and leaving off the source line |
| 1491 |
from the LongMessage. These messages are appropriate if being used |
| 1492 |
in a context where the non-message components of the bug |
| 1493 |
annotations will be used to provide more information (e.g., |
| 1494 |
clicking on the message for a MethodAnnotation will display the |
| 1495 |
source for the method). |
| 1496 |
<ul> |
| 1497 |
<li>FindBugsDisplayFeatures.setAbridgedMessages(true) can be |
| 1498 |
used to generate abridged messages when FindBugs is being |
| 1499 |
accessed directly (not via generated XML) from a GUI or IDE.</li> |
| 1500 |
</ul> |
| 1501 |
<li>In null pointer analysis, try to be better about always |
| 1502 |
showing two locations: where it is known null and where it is |
| 1503 |
dereferenced. |
| 1504 |
<li>Interprocedural analysis of which methods return nonnull |
| 1505 |
values |
| 1506 |
<li>Use method calls to select order in which classes are |
| 1507 |
analyzed, and order in which methods are analyzed, to improve |
| 1508 |
interprocedural analysis results. |
| 1509 |
<li>Significant improvements in memory footprint, memory |
| 1510 |
allocation and CPU utilization (20-30% reduction in all three) |
| 1511 |
<li>Added a project name, to provide better descriptions in |
| 1512 |
the HTML output. |
| 1513 |
<li>Added new bug pattern: Casting to char, or bit masking |
| 1514 |
with nonnegative value, and then checking to see if the result is |
| 1515 |
negative. |
| 1516 |
<li>Stopped reporting transient fields of classes not marked |
| 1517 |
as serializable. Transient is used by other persistence |
| 1518 |
frameworks. |
| 1519 |
<li>Improvements to detector for SQL injection (Thanks to <a |
| 1520 |
href="http://www.clock.org/~matt">Matt Hargett</a> for his |
| 1521 |
contributions |
| 1522 |
<li>Changed open/save options in GUI2 to not distinguish |
| 1523 |
between FindBugs projects and saved FindBugs analysis results. |
| 1524 |
<li>Improvements to detection of serious non-short-circuit |
| 1525 |
evaluation. |
| 1526 |
<li>Updated Japanese localization (thanks to Ruimo Uno) |
| 1527 |
<li>Eclipse plugin changes: |
| 1528 |
<ul> |
| 1529 |
<li>Created Bug User Annotations and Bug Tree Views |
| 1530 |
<li>Use different icons for different bug priorities |
| 1531 |
<li>Provide more information in Bug Details view |
| 1532 |
</ul> |
| 1533 |
</ul> |
| 1534 |
|
| 1535 |
<p>Changes since version 1.1.2:</p> |
| 1536 |
<ul> |
| 1537 |
<li>Fixed broken Ant task |
| 1538 |
<li>Added running ant task to smoke test |
| 1539 |
<li>Added validating xml and html output to smoke test |
| 1540 |
<li>Fixed some (but not all) issues with html output |
| 1541 |
validation |
| 1542 |
<li>Added check for x.equals(x) and x.compareTo(x) |
| 1543 |
<li>Various bug fixes |
| 1544 |
</ul> |
| 1545 |
<p>Changes since version 1.1.1:</p> |
| 1546 |
<ul> |
| 1547 |
<li>Added check for infinite iterative loops</li> |
| 1548 |
<li>Added check for use of incompatible types in a collection |
| 1549 |
(e.g., checking to see if a Set<String> contains a |
| 1550 |
StringBuffer).</li> |
| 1551 |
<li>Added check for invocations of equals or hashCode on a |
| 1552 |
URL, which, <a |
| 1553 |
href="http://michaelscharf.blogspot.com/2006/11/javaneturlequals-and-hashcode-make.html">surprising |
| 1554 |
many people</a>, requires DNS resolution. |
| 1555 |
</li> |
| 1556 |
<li>Added check for classes that define compareTo but not |
| 1557 |
equals; such classes can exhibit some anomalous behavior (e.g., |
| 1558 |
they are treated differently by PriorityQueues in Java 5 and Java |
| 1559 |
6).</li> |
| 1560 |
<li>Added a check for useless self operations (e.g., x < x |
| 1561 |
or x ^ x).</li> |
| 1562 |
<li>Fixed a data race that could cause the GUI to fail on |
| 1563 |
startup</li> |
| 1564 |
<li>Partial internationalization of the new GUI</li> |
| 1565 |
<li>Fix bug in "Redo analysis" option of new GUI</li> |
| 1566 |
<li>Tuning to reduce false positives</li> |
| 1567 |
<li>Fixed a bug in null pointer analysis that was generating |
| 1568 |
false positive null pointer warnings on exception paths. Fixing |
| 1569 |
this bug eliminates about 1/4 of the warnings on null pointer |
| 1570 |
exceptions on exception paths.</li> |
| 1571 |
<li>Fixed a bug in the processing of phi nodes for fields in |
| 1572 |
the null pointer analysis</li> |
| 1573 |
<li>Applied contributed patch that provides more quick fixes |
| 1574 |
in Eclipse plugin.</li> |
| 1575 |
<li>Fixed a number of bugs in the Eclipse auto update sites, |
| 1576 |
and in the way date qualifiers were being used in the Eclipse |
| 1577 |
plugin. You may need to manually disable your existing version of |
| 1578 |
the plugin and download the 1.1.2 from the update site to get the |
| 1579 |
automatic update function working correctly. The Eclipse update |
| 1580 |
sites are described at <a |
| 1581 |
href="http://findbugs.cs.umd.edu/eclipse/">http://findbugs.cs.umd.edu/eclipse/</a>. |
| 1582 |
|
| 1583 |
</li> |
| 1584 |
<li>Fixed progress bar in Eclipse plugin</li> |
| 1585 |
<li>A number of other bug fixes.</li> |
| 1586 |
</ul> |
| 1587 |
|
| 1588 |
<p>Changes since version 1.1.0:</p> |
| 1589 |
<ul> |
| 1590 |
<li>less scanning of classes not on the analysis path (This |
| 1591 |
was causing some performance problems.)</li> |
| 1592 |
<li>no unread field warnings for fields annotated with |
| 1593 |
javax.persistent or javax.ejb3</li> |
| 1594 |
<li>Eclipse plugin |
| 1595 |
<ul> |
| 1596 |
<li>bug annotation info displayed in Bug Details tab</li> |
| 1597 |
<li>.fbwarnings data file now stored in .metadata (not in |
| 1598 |
the project itself)</li> |
| 1599 |
</ul> |
| 1600 |
</li> |
| 1601 |
<li>new SE_BAD_FIELD_INNER_CLASS pattern</li> |
| 1602 |
<li>updates to Japanese translation (ruimo)</li> |
| 1603 |
<li>fix some internal slashed/dotted path confusion</li> |
| 1604 |
<li>other minor improvements</li> |
| 1605 |
</ul> |
| 1606 |
|
| 1607 |
<p>Changes since version 1.0.0:</p> |
| 1608 |
|
| 1609 |
<ul> |
| 1610 |
<li>Overall, the change from FindBugs 1.0.0 to FindBugs 1.1.0 |
| 1611 |
has been a big change. We've done a lot of work in a lot of areas, |
| 1612 |
and aren't even going to try to enumerate all the changes.</li> |
| 1613 |
<li>We spent a lot of time reviewing the results generated by |
| 1614 |
FindBugs for open source and commercial code bases, and made a |
| 1615 |
number of changes, small and large, to minimize the number of |
| 1616 |
false positives. Our primary focus for this was warnings reported |
| 1617 |
as high and medium priority correctness warnings. Our internal |
| 1618 |
evaluation is that we produce very few high/medium priority |
| 1619 |
correctness warnings where the analysis is actually wrong, and |
| 1620 |
that more than 75% of the high/medium priority correctness |
| 1621 |
warnings correspond to real coding defects that need addressing in |
| 1622 |
the source code. The remaining 25% are largely cases such as a |
| 1623 |
branch or statement that if taken would lead to an error, but in |
| 1624 |
fact is a dead branch or statement that can never be taken. Such |
| 1625 |
coding is confusing and hard to maintain, so it should arguably be |
| 1626 |
fixed, but it is unlikely to actually result in an error during |
| 1627 |
execution. Thus, some might classify those warnings as false |
| 1628 |
positives.</li> |
| 1629 |
<li>We've substantially improved the analysis for errors that |
| 1630 |
could result in null pointer dereferences. Overall, our experience |
| 1631 |
has been that these changes have roughly doubled the number of |
| 1632 |
null pointer errors we detect, without increasing the number of |
| 1633 |
false positives (in fact, our false positive rate has gone down). |
| 1634 |
The improvements are due to four factors: |
| 1635 |
<ul> |
| 1636 |
<li>By default, we now do some interprocedural analysis to |
| 1637 |
determine methods that unconditionally dereference their |
| 1638 |
parameters.</li> |
| 1639 |
<li>FindBugs also comes with a model of which JDK methods |
| 1640 |
unconditionally dereference their parameters.</li> |
| 1641 |
<li>We do limited tracking of fields, so that we can detect |
| 1642 |
null values stored in fields that lead to exceptions.</li> |
| 1643 |
<li>We implemented a new analysis technique to find |
| 1644 |
guaranteed dereferences. Consider the following example: <pre>public int f(Object x, boolean b) { |
| 1645 |
int result = 0; |
| 1646 |
if (x == null) result++; |
| 1647 |
else result--; |
| 1648 |
// at this point, we know x is null on a simple path |
| 1649 |
if (b) { |
| 1650 |
// at this point, x is only null on a complex path |
| 1651 |
// we don't know if the path in which x is null and b is true is feasible |
| 1652 |
return result + x.hashCode(); |
| 1653 |
} |
| 1654 |
else { |
| 1655 |
// at this point, x is only null on a complex path |
| 1656 |
// we don't know if the path in which x is null and b is false is feasible |
| 1657 |
return result - x.hashCode(); |
| 1658 |
} |
| 1659 |
</pre> |
| 1660 |
|
| 1661 |
<p> |
| 1662 |
FindBugs 1.0 used forward dataflow analysis to determine |
| 1663 |
whether each value is definitely null, null on a simple path, |
| 1664 |
possible null on a complex path, or definitely nonnull. Thus, |
| 1665 |
at the statement where |
| 1666 |
<code> result </code> |
| 1667 |
is decremented, we know that |
| 1668 |
<code> x </code> |
| 1669 |
is definitely null, and at the point before |
| 1670 |
<code> if (b) </code> |
| 1671 |
, we know that |
| 1672 |
<code> x </code> |
| 1673 |
is null on a simple path. If |
| 1674 |
<code> x </code> |
| 1675 |
were to be dereferenced here, we would generate a warning, |
| 1676 |
because if the else branch of the |
| 1677 |
<code> if (x == null) </code> |
| 1678 |
were ever taken, a null pointer exception would result. |
| 1679 |
</p> |
| 1680 |
|
| 1681 |
<p> |
| 1682 |
However, in both the then and else branches of the |
| 1683 |
<code> if (b) </code> |
| 1684 |
statement, |
| 1685 |
<code> x </code> |
| 1686 |
is only null on a complex path that may be infeasible. It might |
| 1687 |
be that the program logic is such that if |
| 1688 |
<code> x </code> |
| 1689 |
is null, then |
| 1690 |
<code> b </code> |
| 1691 |
is never true, so generating a warning about the dereference in |
| 1692 |
the then clause might be a false positive. We could try to |
| 1693 |
analyze the program to determine whether it is possible for |
| 1694 |
<code> x </code> |
| 1695 |
to be null and |
| 1696 |
<code> b </code> |
| 1697 |
to be true, but that can be a hard analysis problem. |
| 1698 |
</p> |
| 1699 |
|
| 1700 |
<p> |
| 1701 |
However, |
| 1702 |
<code> x </code> |
| 1703 |
is dereferenced in both the then <em>and</em> else branches of |
| 1704 |
the |
| 1705 |
<code> if (b) </code> |
| 1706 |
statement. So at the point immediately before |
| 1707 |
<code> if (b) </code> |
| 1708 |
, we know that |
| 1709 |
<code> x </code> |
| 1710 |
is null on a simple path <em>and</em> that |
| 1711 |
<code> x </code> |
| 1712 |
is guaranteed to be dereferenced on all paths from this point |
| 1713 |
forward. FindBugs 1.1 performs a backwards data flow analysis |
| 1714 |
to determine the values that are guaranteed to be dereferenced, |
| 1715 |
and will generate a warning in this case. |
| 1716 |
</p> |
| 1717 |
</li> |
| 1718 |
</ul> |
| 1719 |
<p> |
| 1720 |
The following screen shot of our new GUI shows an example of this |
| 1721 |
analysis, as well as showing off our new GUI and points out a |
| 1722 |
limitation of our current plugins for Eclipse and NetBeans. The |
| 1723 |
screen shot shows a null pointer bug in HelpDisplay.java. The |
| 1724 |
test for |
| 1725 |
<code> href!=null </code> |
| 1726 |
on line 78 suggests that |
| 1727 |
<code> href </code> |
| 1728 |
could be null. If it is, then |
| 1729 |
<code> href </code> |
| 1730 |
will be dereferenced on either line 87 or on line 90, generating |
| 1731 |
a NPE. Note that our analysis here also understands that passing |
| 1732 |
<code> href </code> |
| 1733 |
to |
| 1734 |
<code> URLEncoder.encode </code> |
| 1735 |
will deference it, and thus treats line 87 as a dereference, even |
| 1736 |
though |
| 1737 |
<code> href </code> |
| 1738 |
is not actually dereferenced at that line. Within our new GUI, |
| 1739 |
all of these locations are highlighted and listed in the summary |
| 1740 |
panel. In the original GUI (and in HTML output) we list all of |
| 1741 |
the locations, but only the primary location is highlighted by |
| 1742 |
the original GUI. In the Eclipse and NetBeans plugins, only the |
| 1743 |
primary location is displayed; fixing this is on our todo list |
| 1744 |
(contributions welcome). |
| 1745 |
</p> |
| 1746 |
<p> |
| 1747 |
<img src="guaranteedDereference.png" alt=""> |
| 1748 |
|
| 1749 |
|
| 1750 |
</p> |
| 1751 |
|
| 1752 |
</li> |
| 1753 |
<li>Preliminary support for detectors using the frameworks |
| 1754 |
other than BCEL, such as the <a href="http://asm.objectweb.org/">ASM</a> |
| 1755 |
bytecode framework. You may experiment with writing ASM-based |
| 1756 |
detectors, but beware the API may still change (which could |
| 1757 |
possibly also affect BCEL-based detectors). In general, we've |
| 1758 |
started trying to move away from a deep dependence on BCEL, but |
| 1759 |
that change is only partially complete. Probably best to just |
| 1760 |
avoid this until we complete more work on this. This change is |
| 1761 |
only visible to FindBugs plugin developers, and shouldn't be |
| 1762 |
visible to FindBugs users. |
| 1763 |
</li> |
| 1764 |
<li> |
| 1765 |
<p>Bug categories (CORRECTNESS, MT_CORRECTNESS, etc.) are no |
| 1766 |
longer hard-coded, but rather defined in xml files associated |
| 1767 |
with plugins, including the core plugin which defines the |
| 1768 |
standard categories. Third-party plugins can define their own |
| 1769 |
categories.</p> |
| 1770 |
</li> |
| 1771 |
<li> |
| 1772 |
<p>Several bug patterns have been moved from CORRECTNESS and |
| 1773 |
STYLE into a new category, BAD_PRACTICE. The English localization |
| 1774 |
of STYLE has changed from "Style" to "Dodgy."</p> |
| 1775 |
<p>In general, we've worked very hard to limit CORRECTNESS |
| 1776 |
bugs to be real programming errors and sins of commission. We |
| 1777 |
have reclassified as BAD_PRACTICE a number of bad design |
| 1778 |
practices that result in overly fragile code, such as defining an |
| 1779 |
equals method that doesn't accept null or defining class with a |
| 1780 |
equals method that inherits hashCode from class Object.</p> |
| 1781 |
<p>In general, our guidelines for deciding whether a bug |
| 1782 |
should be classified as CORRECTNESS, BAD_PRACTICE or STYLE are:</p> |
| 1783 |
<dl> |
| 1784 |
<dt>CORRECTNESS</dt> |
| 1785 |
<dd>A problem that we can recognize with high confidence and |
| 1786 |
is an issue that we believe almost all developers would want to |
| 1787 |
examine and address. We recommend that software teams review all |
| 1788 |
high and medium priority warnings in their entire code base.</dd> |
| 1789 |
<dt>BAD_PRACTICE</dt> |
| 1790 |
<dd>A problem that we can recognize with high confidence and |
| 1791 |
represents a clear violation of recommended and standard coding |
| 1792 |
practice. We believe each software team should decide which bad |
| 1793 |
practices identified by FindBugs it wants to prohibit in the |
| 1794 |
team's coding standard, and take action to remedy violations of |
| 1795 |
those coding standards.</dd> |
| 1796 |
<dt>STYLE</dt> |
| 1797 |
<dd>These are places where something strange or dodgy is |
| 1798 |
going on, such as a dead store to a local variable. Typically, |
| 1799 |
less than half of these represent actionable programming |
| 1800 |
defects. Reviewing these warnings in any code under active |
| 1801 |
development is probably a good idea, but reviewing all such |
| 1802 |
warnings in your entire code base might be appropriate only in |
| 1803 |
some situations. Individual or team programming styles can |
| 1804 |
substantially influence the effectiveness of each of these |
| 1805 |
warnings (e.g., you might have a coding practice or style in |
| 1806 |
your group that confuses one of the detectors into generating a |
| 1807 |
lot of STYLE warnings); you will likely want to selectively |
| 1808 |
suppress or report the STYLE warnings that are effective for |
| 1809 |
your group.</dd> |
| 1810 |
</dl> |
| 1811 |
</li> |
| 1812 |
<li>Released a preliminary version of a new GUI (known |
| 1813 |
internally as GUI2 -- not very creative, huh?)</li> |
| 1814 |
<li>Provided standard ways to mark user designations of bug |
| 1815 |
warnings (e.g., as NOT_A_BUG or SHOULD_FIX). The internal logic |
| 1816 |
now records this, it is represented in the XML file, and GUI2 |
| 1817 |
allows the designations to be applied (along with free-form user |
| 1818 |
annotations about each warning). The user designations and |
| 1819 |
annotations are not yet supported by the Eclipse plugin, but we |
| 1820 |
clearly want to support it in Eclipse shortly.</li> |
| 1821 |
<li>Added a check for a bad comparison with a signed byte with |
| 1822 |
a value not in the range -128..127. For example: <pre>boolean find200(byte b[]) { |
| 1823 |
for(int i = 0; i < b.length; i++) if (b[i] == 200) return i; |
| 1824 |
return -1; |
| 1825 |
} |
| 1826 |
</pre> |
| 1827 |
</li> |
| 1828 |
<li>Added a checking for testing if a value is equal to |
| 1829 |
Double.NaN (no value is equal to NaN, not even NaN).</li> |
| 1830 |
<li>Added a check for using a class with an equals method but |
| 1831 |
no hashCode method in a hashed data structure.</li> |
| 1832 |
<li>Added check for uncallable method of an anonymous inner |
| 1833 |
class. For example, in the following code, it is impossible to |
| 1834 |
invoke the initalValue method (because the name is misspelled and |
| 1835 |
as a result is doesn't override a method in ThreadLocal). <pre>private static ThreadLocal serialNum = new ThreadLocal() { |
| 1836 |
protected synchronized Object initalValue() { |
| 1837 |
return new Integer(nextSerialNum++); |
| 1838 |
} |
| 1839 |
}; |
| 1840 |
</pre> |
| 1841 |
</li> |
| 1842 |
<li>Added check for a dead local store caused by a switch |
| 1843 |
statement fall through</li> |
| 1844 |
<li>Added check for computing the absolute value of a random |
| 1845 |
32 bit integer or of a hashcode. This is broken because <code> |
| 1846 |
Math.abs(Integer.MIN_VALUE) == Integer.MIN_VALUE </code> , and thus |
| 1847 |
result of calling Math.abs, which is expected to be nonnegative, |
| 1848 |
will in fact be negative one time out of 2 <sup> 32 </sup> , which |
| 1849 |
will invariably be the time your boss is demoing the software to |
| 1850 |
your customers. |
| 1851 |
|
| 1852 |
</li> |
| 1853 |
<li>More careful resolution of inherited methods and fields. |
| 1854 |
Some of the shortcuts we were taking in FindBugs 1.0.0 were |
| 1855 |
leading to inaccurate results, and it was fairly easy to address |
| 1856 |
this by making the analysis more accurate.</li> |
| 1857 |
<li>Overall, analysis times are about 1.6 times longer in |
| 1858 |
FindBugs 1.1.0 than in FindBugs 1.0.0. This is because we have |
| 1859 |
enabled substantial additional analysis at the default effort |
| 1860 |
level (the actual analysis engine is significantly faster than in |
| 1861 |
FindBugs 1.0). On a recent AMD Athlon processor, analyzing |
| 1862 |
JDK1.6.0 (about 1 million lines of code) requires about 15 minutes |
| 1863 |
of wall clock time.</li> |
| 1864 |
<li>Provided class and script (printClass) to print classfile |
| 1865 |
in the human readable format produced by BCEL</li> |
| 1866 |
<li>Provided -findSource option to setBugDatabaseInfo</li> |
| 1867 |
</ul> |
| 1868 |
|
| 1869 |
|
| 1870 |
<p>Changes since version 0.9.7:</p> |
| 1871 |
|
| 1872 |
<ul> |
| 1873 |
<li>fix ObjectTypeFactory bug that was suppressing some bugs</li> |
| 1874 |
<li>opcode stack may determine definite zeros on some paths</li> |
| 1875 |
<li>opcode stack can track some constant string concatenations |
| 1876 |
(dbrosius)</li> |
| 1877 |
<li>default effort performs iterative opcode analysis (but min |
| 1878 |
effort does not)</li> |
| 1879 |
<li>default heap size upped to 384m</li> |
| 1880 |
<li>schema for XML output available: bugcollection.xsd</li> |
| 1881 |
<li>fixed some internal confusion between dotted and slashed |
| 1882 |
class names</li> |
| 1883 |
<li>New detectors |
| 1884 |
<ul> |
| 1885 |
<li>CheckImmutableAnnotation.java: checks JCIP annotations</li> |
| 1886 |
</ul> |
| 1887 |
</li> |
| 1888 |
<li>Updated detectors |
| 1889 |
<ul> |
| 1890 |
<li>BadRegEx.java: understands Pattern.LITERAL, warns about |
| 1891 |
"."</li> |
| 1892 |
<li>FindUnreleasedLock.java: fewer false positives</li> |
| 1893 |
<li>DumbMethods.java: check for vacuous comparisons to |
| 1894 |
MAX_INTEGER or MIN_INTEGER, fix bugs detecting |
| 1895 |
DM_NEXTINT_VIA_NEXTDOUBLE</li> |
| 1896 |
<li>FindPuzzlers.java: detect <tt>n%2==1</tt>, detect |
| 1897 |
toString() on array types |
| 1898 |
</li> |
| 1899 |
<li>FindInconsistentSync2.java: detects IS_FIELD_NOT_GUARDED |
| 1900 |
</li> |
| 1901 |
<li>MethodReturnCheck.java: add check for discarded newly |
| 1902 |
constructed values, increase priority of some ignored |
| 1903 |
constructed exceptions, better handling of bytecode compiled by |
| 1904 |
Eclipse</li> |
| 1905 |
<li>FindEmptySynchronizedBlock.java: better handling of |
| 1906 |
bytecode compiled by Eclipse</li> |
| 1907 |
<li>DoInsideDoPrivileged.java: warn if call to setAccessible |
| 1908 |
isn't in doPriviledged, don't report private methods</li> |
| 1909 |
<li>LoadOfKnownNullValue.java: fix bug that was reporting |
| 1910 |
false positives on <code> finally </code> blocks |
| 1911 |
</li> |
| 1912 |
<li>CheckReturnAnnotationDatabase.java: better checks for |
| 1913 |
unstarted threads</li> |
| 1914 |
<li>ConfusionBetweenInheritedAndOuterMethod.java: fewer |
| 1915 |
false positives, fixed a package-handling bug</li> |
| 1916 |
<li>BadResultSetAccess.java: separate bug pattern for |
| 1917 |
PreparedStatements, <code> BRZA </code> category folded into <code> |
| 1918 |
SQL </code> category |
| 1919 |
</li> |
| 1920 |
<li>FindDeadLocalStores.java, FindBadCast2.java, |
| 1921 |
DumbMethods.java, RuntimeExceptionCapture.java: coalesce similar |
| 1922 |
bugs within a method into a single bug instance with multiple |
| 1923 |
source lines</li> |
| 1924 |
</ul> |
| 1925 |
</li> |
| 1926 |
<li>Eclipse plugin |
| 1927 |
<ul> |
| 1928 |
<li>plugin ID changed from <tt>de.tobject.findbugs</tt> to <tt>edu.umd.cs.findbugs.plugin.eclipse</tt> |
| 1929 |
</li> |
| 1930 |
<li>support for findbugs eclipse auto-update site</li> |
| 1931 |
</ul> |
| 1932 |
</li> |
| 1933 |
<li>Updated test case files |
| 1934 |
<ul> |
| 1935 |
<li>BadRegEx.java</li> |
| 1936 |
<li>JSR166.java</li> |
| 1937 |
<li>ConcurrentModificationBug.java</li> |
| 1938 |
<li>DeadStore.java</li> |
| 1939 |
<li>InstanceOf.java</li> |
| 1940 |
<li>LoadKnownNull.java</li> |
| 1941 |
<li>NeedsToCheckReturnValue.java</li> |
| 1942 |
<li>BadResultSetAccessTest.java</li> |
| 1943 |
<li>DeadStore.java</li> |
| 1944 |
<li>TestNonNull2.java</li> |
| 1945 |
<li>TestImmutable.java</li> |
| 1946 |
<li>TestGuardedBy.java</li> |
| 1947 |
<li>BadRandomInt.java</li> |
| 1948 |
<li>six test cases added to new <code> TigerTraps </code> |
| 1949 |
directory |
| 1950 |
</li> |
| 1951 |
</ul> |
| 1952 |
</li> |
| 1953 |
<li>fix bug that was generating duplicate uids</li> |
| 1954 |
<li>fix bug with <code> -onlyAnalyze some.package.* </code> on |
| 1955 |
jdk1.4 |
| 1956 |
</li> |
| 1957 |
<li>fix regression bug in |
| 1958 |
DismantleByteCode.getRefConstantOperand()</li> |
| 1959 |
<li>fix some minor bugs with the Swing GUI</li> |
| 1960 |
<li>reordered some bugInstances so that source line |
| 1961 |
annotations come last</li> |
| 1962 |
<li>removed references to unused java system properties</li> |
| 1963 |
<li>French translation updates (David Cotton)</li> |
| 1964 |
<li>Japanese translation updates (Hanai Shisei)</li> |
| 1965 |
<li>content cleanup for findbugs.xml and messages.xml</li> |
| 1966 |
<li>references to cvs hostname updated to |
| 1967 |
findbugs.cvs.sourceforge.net</li> |
| 1968 |
<li>documented xdoc output options, new |
| 1969 |
mineBugHistory/computeBugHistory options</li> |
| 1970 |
</ul> |
| 1971 |
|
| 1972 |
<p>Changes since version 0.9.6:</p> |
| 1973 |
|
| 1974 |
<ul> |
| 1975 |
<li>performance improvements</li> |
| 1976 |
<li>ObjectType instances are cached to reduce memory footprint |
| 1977 |
</li> |
| 1978 |
<li>for performance and memory reasons stateless detectors are |
| 1979 |
no longer cloned, must clear their own state between .class files |
| 1980 |
</li> |
| 1981 |
<li>fixed bug in bytecode-set lookup for methods (was causing |
| 1982 |
bad results for IS2, perhaps others)</li> |
| 1983 |
<li>fix some OpcodeStack bugs with integer and long |
| 1984 |
operations, perform iterative analysis when effort is <tt>max</tt> |
| 1985 |
</li> |
| 1986 |
<li>HTML output includes LongMessage text again (regression in |
| 1987 |
0.95 - 0.96)</li> |
| 1988 |
<li>New detectors |
| 1989 |
<ul> |
| 1990 |
<li>CalledMethods.java: builds a list of invoked methods for |
| 1991 |
other detectors to consult (non-reporting)</li> |
| 1992 |
<li>UncallableMethodOfAnonymousClass.java: detect anonymous |
| 1993 |
inner classes that define methods that are probably intended to |
| 1994 |
but do not override methods in a superclass.</li> |
| 1995 |
</ul> |
| 1996 |
</li> |
| 1997 |
<li>Updated detectors |
| 1998 |
<ul> |
| 1999 |
<li>FindFieldSelfAssignment.java: recognize separate fields |
| 2000 |
with the same name (one from superclass)</li> |
| 2001 |
<li>FindLocalSelfAssignment2.java: handles backward branches |
| 2002 |
better (Dave Brosius)</li> |
| 2003 |
<li>FindBadCast2.java: BC_NULL_INSTANCEOF changed to |
| 2004 |
NP_NULL_INSTANCEOF</li> |
| 2005 |
<li>FindPuzzlers.java: eliminate false positive on setDate() |
| 2006 |
(Dave Brosius)</li> |
| 2007 |
</ul> |
| 2008 |
</li> |
| 2009 |
<li>Eclipse plugin |
| 2010 |
<ul> |
| 2011 |
<li>fix serious threading bug</li> |
| 2012 |
<li>preferences for Filters and effort (Peter Hendriks)</li> |
| 2013 |
<li>French localization (David Cotton)</li> |
| 2014 |
<li>fix bug when reporting inner classes (Peter Friese)</li> |
| 2015 |
</ul> |
| 2016 |
</li> |
| 2017 |
<li>Updated test case files |
| 2018 |
<ul> |
| 2019 |
<li>Mwn.java (Carl Burke/Dave Brosius)</li> |
| 2020 |
<li>DumbMethodInvocations.java (Anto paul/Dave Brosius)</li> |
| 2021 |
|
| 2022 |
</ul> |
| 2023 |
</li> |
| 2024 |
<li>XML output includes garbage collection duration</li> |
| 2025 |
<li>French messages updated (David Cotton)</li> |
| 2026 |
<li>Swing GUI shows file name after Load Bugs command</li> |
| 2027 |
<li>Ant task to launch the findbugs frame (Mark McKay)</li> |
| 2028 |
<li>miscellaneous code cleanup</li> |
| 2029 |
</ul> |
| 2030 |
|
| 2031 |
<p>Changes since version 0.9.5:</p> |
| 2032 |
|
| 2033 |
<ul> |
| 2034 |
<li>Updated detectors |
| 2035 |
<ul> |
| 2036 |
<li>FindNullDeref.java: respect NonNull and CheckForNull |
| 2037 |
field annotations</li> |
| 2038 |
<li>SerializableIdiom.java: detect non-private readObject |
| 2039 |
and writeObject methods</li> |
| 2040 |
<li>FindRefComparison.java: smarter array comparison |
| 2041 |
detection</li> |
| 2042 |
<li>IsNullValueAnalysis.java: detect <tt>null |
| 2043 |
instanceof</tt> |
| 2044 |
</li> |
| 2045 |
<li>FindLocalSelfAssignment2.java: suppress some false |
| 2046 |
positives (Dave Brosius)</li> |
| 2047 |
<li>FindUnreleasedLock.java: don't waste time processing |
| 2048 |
classes that don't refer to java.util.concurrent.locks</li> |
| 2049 |
<li>MutableStaticFields.java: report the source line (Dave |
| 2050 |
Brosius)</li> |
| 2051 |
<li>SwitchFallthrough.java: better handling of System.exit() |
| 2052 |
(Dave Brosius)</li> |
| 2053 |
<li>MultithreadedInstanceAccess.java: better handling of |
| 2054 |
Servlet.init() (Dave Brosius)</li> |
| 2055 |
<li>ConfusionBetweenInheritedAndOuterMethod.java: now |
| 2056 |
enabled</li> |
| 2057 |
</ul> |
| 2058 |
</li> |
| 2059 |
<li>Eclipse plugin |
| 2060 |
<ul> |
| 2061 |
<li>background processing (Peter Friese)</li> |
| 2062 |
<li>internationalization, Japanese localization (Takashi |
| 2063 |
Okamoto)</li> |
| 2064 |
</ul> |
| 2065 |
</li> |
| 2066 |
<li>findbugs <tt>-onlyAnalyze</tt> option now works on windows |
| 2067 |
platforms |
| 2068 |
</li> |
| 2069 |
<li>mineBugHistory <tt>-noTabs</tt> option for better |
| 2070 |
alignment of output columns |
| 2071 |
</li> |
| 2072 |
<li>filterBugs <tt>-fixed</tt> option (also: will now |
| 2073 |
recognize the most recent version string) |
| 2074 |
</li> |
| 2075 |
<li>XML output includes running time and memory usage data</li> |
| 2076 |
<li>miscellaneous minor corrections to the manual</li> |
| 2077 |
<li>better bytecode analysis of the <tt>iinc</tt> instruction |
| 2078 |
</li> |
| 2079 |
<li>fix bug in null pointer analysis</li> |
| 2080 |
<li>improved catch block heuristics</li> |
| 2081 |
<li>some type analysis tweaks</li> |
| 2082 |
<li>Bug priority changes |
| 2083 |
<ul> |
| 2084 |
<li>DumbMethodInvocations.java: decrease priority of |
| 2085 |
hard-coded <tt>/tmp</tt> filenames |
| 2086 |
</li> |
| 2087 |
<li>ComparatorIdiom.java: decrease priority of |
| 2088 |
non-serializable anonymous comparators</li> |
| 2089 |
<li>FindSqlInjection.java: decrease priority of appending a |
| 2090 |
constant or a static</li> |
| 2091 |
</ul> |
| 2092 |
</li> |
| 2093 |
<li>Updated bug explanations |
| 2094 |
<ul> |
| 2095 |
<li>NM_VERY_CONFUSING (Dave Brosius)</li> |
| 2096 |
</ul> |
| 2097 |
</li> |
| 2098 |
<li>Updated test case files |
| 2099 |
<ul> |
| 2100 |
<li>BadStoreOfNonSerializableObject.java</li> |
| 2101 |
<li>BadRandomInt.java</li> |
| 2102 |
<li>TestFieldAnnotations.java</li> |
| 2103 |
<li>UseInitCause.java</li> |
| 2104 |
<li>SqlInjection.java</li> |
| 2105 |
<li>ArrayEquality.java</li> |
| 2106 |
<li>BadIntegerOperations.java</li> |
| 2107 |
<li>Pilhuhn.java</li> |
| 2108 |
<li>InstanceOf.java</li> |
| 2109 |
<li>SwitchFallthrough.java (Dave Brosius)</li> |
| 2110 |
</ul> |
| 2111 |
</li> |
| 2112 |
<li>fix URL decoding bug when running under Java Web Start |
| 2113 |
(Dave Brosius)</li> |
| 2114 |
<li>distribution includes <tt>project.xml</tt> file for |
| 2115 |
NetBeans |
| 2116 |
</li> |
| 2117 |
</ul> |
| 2118 |
|
| 2119 |
<p>Changes since version 0.9.4:</p> |
| 2120 |
<ul> |
| 2121 |
<li>New detectors |
| 2122 |
<ul> |
| 2123 |
<li>VarArgsProblems.java</li> |
| 2124 |
<li>FindSqlInjection.java: now enabled</li> |
| 2125 |
<li>ComparatorIdiom.java: comparators usually implement |
| 2126 |
serializable</li> |
| 2127 |
<li>Naming.java: detect methods not overridden due to |
| 2128 |
eponymously typed args from different packages</li> |
| 2129 |
</ul> |
| 2130 |
</li> |
| 2131 |
<li>Updated detectors |
| 2132 |
<ul> |
| 2133 |
<li>SwitchFallthrough.java: suppress some false positives</li> |
| 2134 |
<li>DuplicateBranches.java: suppress some false positives</li> |
| 2135 |
<li>IteratorIdioms.java: suppress some false positives</li> |
| 2136 |
<li>FindHEmismatch.java: suppress some false positives</li> |
| 2137 |
<li>QuestionableBooleanAssignment.java: finds more cases of |
| 2138 |
<tt>if (b=true)</tt> ilk |
| 2139 |
</li> |
| 2140 |
<li>DumbMethods.java: detect int remainder by 1, delayed gc |
| 2141 |
errors</li> |
| 2142 |
<li>SerializableIdiom.java: detect store of nonserializable |
| 2143 |
object into field of serializable class</li> |
| 2144 |
<li>FindNullDeref.java: fix potential exception</li> |
| 2145 |
<li>IsNullValue.java: fix potential exception</li> |
| 2146 |
<li>MultithreadedInstanceAccess.java: fix potential |
| 2147 |
exception</li> |
| 2148 |
<li>PreferZeroLengthArrays.java: flag the method, not the |
| 2149 |
line</li> |
| 2150 |
</ul> |
| 2151 |
</li> |
| 2152 |
<li>Remove some inadvertent dependencies on JDK 1.5</li> |
| 2153 |
<li>Sort order should be more consistent</li> |
| 2154 |
<li>XML output changes |
| 2155 |
<ul> |
| 2156 |
<li>Option to sort XML bug output</li> |
| 2157 |
<li>Now contains instance IDs</li> |
| 2158 |
<li>uid no longer missing (was causing problems with fancy |
| 2159 |
HTML output)</li> |
| 2160 |
<li>Typo fixed</li> |
| 2161 |
</ul> |
| 2162 |
</li> |
| 2163 |
<li>Internal changes to track source files, <tt>-sourceInfo</tt> |
| 2164 |
option |
| 2165 |
</li> |
| 2166 |
<li>Bug matching: first try exact bug pattern matching, option |
| 2167 |
to compare priorities, option to disable package moves</li> |
| 2168 |
<li>Architecture documentation in <tt>design/architecture</tt> |
| 2169 |
</li> |
| 2170 |
<li>Test cases move into their own CVS project</li> |
| 2171 |
<li>Don't report warnings that occur outside the analyzed |
| 2172 |
classes</li> |
| 2173 |
<li>Fixes to the build.xml files</li> |
| 2174 |
<li>Better handling of @CheckReturnValue and @CheckForNull |
| 2175 |
annotations (also, some additional methods searched for check |
| 2176 |
return value and check for null)</li> |
| 2177 |
<li>Fixed some stream-closing bugs (one by <tt>z-fb-user</tt>/Dave |
| 2178 |
Brosius) |
| 2179 |
</li> |
| 2180 |
<li>Bug priority changes |
| 2181 |
<ul> |
| 2182 |
<li>increase priority of ignoring return value of |
| 2183 |
java.sql.Connection methods</li> |
| 2184 |
<li>increase priority of comparing classes like Integer |
| 2185 |
using <tt>==</tt> |
| 2186 |
</li> |
| 2187 |
<li>decrease priority of IT_NO_SUCH_ELEMENT if we see any |
| 2188 |
call to <tt>next()</tt> |
| 2189 |
</li> |
| 2190 |
<li>tweak priority of NM_METHOD_CONSTRUCTOR_CONFUSION</li> |
| 2191 |
<li>decrease priority of RV_RETURN_VALUE_IGNORED for an |
| 2192 |
inherited annotation that doesn't return same type as class</li> |
| 2193 |
</ul> |
| 2194 |
</li> |
| 2195 |
<li>Updated bug explanations |
| 2196 |
<ul> |
| 2197 |
<li>RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE</li> |
| 2198 |
<li>DP_CREATE_CLASSLOADER_INSIDE_DO_PRIVILEGED</li> |
| 2199 |
<li>IMA_INEFFICIENT_MEMBER_ACCESS (Dave Brosius)</li> |
| 2200 |
<li>some Japanese improvements to messages_ja.xml ( <tt>ruimo</tt>) |
| 2201 |
</li> |
| 2202 |
<li>some German improvements to findbugs_de.properties (Dave |
| 2203 |
Brosius, <tt>dvholten</tt>) |
| 2204 |
</li> |
| 2205 |
</ul> |
| 2206 |
</li> |
| 2207 |
<li>Updated test case files |
| 2208 |
<ul> |
| 2209 |
<li>BadIntegerOperations.java</li> |
| 2210 |
<li>SecondKaboom.java</li> |
| 2211 |
<li>OpenDatabase.java (Dave Brosius)</li> |
| 2212 |
<li>FindOpenStream.java (Dave Brosius)</li> |
| 2213 |
<li>BadRandomInt.java</li> |
| 2214 |
</ul> |
| 2215 |
</li> |
| 2216 |
<li>Source-lines info maintained for methods (handy for |
| 2217 |
abstract and native methods)</li> |
| 2218 |
<li>Remove surrounding opcodes from source line annotations</li> |
| 2219 |
<li>Better error when can't read file</li> |
| 2220 |
<li>Swing GUI: removed console pane from FindBugsFrame, fix |
| 2221 |
missing classes bug</li> |
| 2222 |
<li>Fixes to OpcodeStack.java</li> |
| 2223 |
<li>Detectors may attach a custom value to an OpcodeStack.Item |
| 2224 |
(Dave Brosius)</li> |
| 2225 |
<li>Filter.java: ability to add text messages to XML output, |
| 2226 |
fix bug with <tt>-withMessages</tt> |
| 2227 |
</li> |
| 2228 |
<li>SourceInfoMap supports ranges of source lines</li> |
| 2229 |
<li>Ant task supports the <tt>timestampNow</tt> attribute |
| 2230 |
</li> |
| 2231 |
</ul> |
| 2232 |
|
| 2233 |
<p>Changes since version 0.9.3:</p> |
| 2234 |
<ul> |
| 2235 |
<li>Substantial rework of datamining code</li> |
| 2236 |
<li>Removed bogus warnings about await on things other than |
| 2237 |
Condition not being in a loop</li> |
| 2238 |
<li>Fixed bug in OpcodeStack handling of dup2 of long/double |
| 2239 |
values</li> |
| 2240 |
<li>Don't report array types as missing classes</li> |
| 2241 |
<li>Adjustment of some warnings on ignored return values</li> |
| 2242 |
<li>Added thread safety annotations from Java Concurrency in |
| 2243 |
Practice (no detectors written for these yet)</li> |
| 2244 |
<li>Added annotation for methods that, if overridden, should |
| 2245 |
be invoked by overriding methods via a call to super</li> |
| 2246 |
<li>Updated -html:fancy.xsl (Etienne Giraudy)</li> |
| 2247 |
</ul> |
| 2248 |
|
| 2249 |
<p>Note: there was no version 0.9.2</p> |
| 2250 |
|
| 2251 |
<p>Changes since version 0.9.1:</p> |
| 2252 |
<ul> |
| 2253 |
|
| 2254 |
<li>Embellish USM to find abstract methods that implement an |
| 2255 |
interface method (Dave Brosius)</li> |
| 2256 |
<li>New detector to find stores of literal booleans inside if |
| 2257 |
or while expressions (Dave Brosius)</li> |
| 2258 |
<li>New style detector to find final classes that declare |
| 2259 |
protected fields (Dave Brosius)</li> |
| 2260 |
<li>New detector to find subclass methods that simply forward, |
| 2261 |
verbatim, to the super class (Dave Brosius)</li> |
| 2262 |
<li>Detector to find instances where code is attempting to |
| 2263 |
write an object out via an implementation of DataOutput, but the |
| 2264 |
object is not guaranteed to be Serializable (Jon Christiansen, |
| 2265 |
Bill Pugh)</li> |
| 2266 |
|
| 2267 |
|
| 2268 |
<li>Large (35%) analysis speedup (Bill Pugh)</li> |
| 2269 |
<li>Add line numbers to Swing GUI code panel (Dave Brosius)</li> |
| 2270 |
<li>Added effort options to Swing GUI (Dave Brosius)</li> |
| 2271 |
<li>Add ability to specify bugs file to open from command line |
| 2272 |
for GUI version, through -loadbugs (Phillip Martin)</li> |
| 2273 |
<li>New stylesheet for generating HTML: use option <tt>-html:plain.xsl</tt> |
| 2274 |
(Chris Nappin) |
| 2275 |
</li> |
| 2276 |
<li>New stylesheet for generating HTML: use option <tt>-html:fancy.xsl</tt> |
| 2277 |
(Etienne Giraudy) |
| 2278 |
</li> |
| 2279 |
<li>Updated Japanese bug message translations (Shisei Hanai)</li> |
| 2280 |
|
| 2281 |
|
| 2282 |
<li>XHTML compliance fixes for bug details (Etienne Giraudy)</li> |
| 2283 |
<li>Various detector fixes (Shisei Hanai)</li> |
| 2284 |
<li>Fixed bugs in the project preferences dialog int the |
| 2285 |
Eclipse plugin (Takashi Okamoto, Thomas Einwaller)</li> |
| 2286 |
<li>Lowered priority of analysis thread in Swing GUI (David |
| 2287 |
Hovemeyer, suggested by Shisei Hanai and Jeffrey W. Badorek)</li> |
| 2288 |
<li>Fixed EclipsePlugin to correctly pick up auxclasspath |
| 2289 |
entries (Jon Christiansen)</li> |
| 2290 |
</ul> |
| 2291 |
|
| 2292 |
<p>Changes since version 0.9.0:</p> |
| 2293 |
<ul> |
| 2294 |
<li>Fixed dependence on JRE 1.5: all features should work on |
| 2295 |
JRE 1.4 again</li> |
| 2296 |
<li>Fixed -effort command line option handling for Swing GUI</li> |
| 2297 |
<li>Fixed conserveSpace and workHard attributes int Ant task</li> |
| 2298 |
<li>Added support for effort attribute in Ant task</li> |
| 2299 |
</ul> |
| 2300 |
|
| 2301 |
<p>Changes since version 0.8.8:</p> |
| 2302 |
<ul> |
| 2303 |
|
| 2304 |
<li>XMLFactoryBypass detector to find direct allocation of xml |
| 2305 |
class implementations (Dave Brosius)</li> |
| 2306 |
<li>InefficientMemberAccess detector to find accesses to |
| 2307 |
owning class private members (Dave Brosius)</li> |
| 2308 |
<li>DuplicateBranches detector checks switch statements too |
| 2309 |
(Dave Brosius)</li> |
| 2310 |
|
| 2311 |
|
| 2312 |
<li>FindBugs available from findbugs.sourceforge.net as Java |
| 2313 |
Web Start application (Dave Brosius)</li> |
| 2314 |
<li>Updated Japanese bug message translations (Shisei Hanai)</li> |
| 2315 |
<li>Improved bug detail message for covariant equals() (Shisei |
| 2316 |
Hanai)</li> |
| 2317 |
<li>Modeling of instanceof checks is now enabled by default, |
| 2318 |
making the bad cast detector much more useful (Bill Pugh, David |
| 2319 |
Hovemeyer)</li> |
| 2320 |
<li>Support for detector ordering constraints in plugin |
| 2321 |
descriptor (David Hovemeyer)</li> |
| 2322 |
<li>Simpler option to control analysis effort: -effort: <i>value</i>, |
| 2323 |
where <i>value</i> is one of <code> min </code> , <code> |
| 2324 |
default </code> , or <code> max </code> (David Hovemeyer) |
| 2325 |
</li> |
| 2326 |
<li>Using -effort:max, FindNullDeref checks for null arguments |
| 2327 |
passed to methods which dereference them unconditionally (David |
| 2328 |
Hovemeyer)</li> |
| 2329 |
<li>FindNullDeref checks @Null and @NonNull annotations for |
| 2330 |
parameters and return values (David Hovemeyer)</li> |
| 2331 |
|
| 2332 |
|
| 2333 |
</ul> |
| 2334 |
|
| 2335 |
<p>Changes since version 0.8.7:</p> |
| 2336 |
|
| 2337 |
<ul> |
| 2338 |
|
| 2339 |
<li>New detector to find duplicate code in if/else statements |
| 2340 |
(Dave Brosius)</li> |
| 2341 |
<li>Look for calls to wait() on Condition objects (David |
| 2342 |
Hovemeyer)</li> |
| 2343 |
<li>Look for java.util.concurrent.Lock objects not released on |
| 2344 |
every path out of method (David Hovemeyer)</li> |
| 2345 |
<li>Look for calls to Thread.sleep() with a lock held (David |
| 2346 |
Hovemeyer)</li> |
| 2347 |
<li>More accurate detection of impossible casts (Bill Pugh, |
| 2348 |
David Hovemeyer)</li> |
| 2349 |
|
| 2350 |
|
| 2351 |
<li>Saved XML now contains project statistics (Jay Dunning)</li> |
| 2352 |
<li>Filter files can select by bug pattern type and warning |
| 2353 |
priority (David Hovemeyer)</li> |
| 2354 |
|
| 2355 |
|
| 2356 |
<li>Restored some files inadvertently omitted from previous |
| 2357 |
release (Rohan Lloyd, David Hovemeyer)</li> |
| 2358 |
<li>Make sure detectors requiring JDK 1.5 runtime classes are |
| 2359 |
only executed if those classes are available (David Hovemeyer)</li> |
| 2360 |
<li>Don't display analysis error dialog unless there is really |
| 2361 |
an error (David Hovemeyer)</li> |
| 2362 |
<li>Updated and expanded French translations of bug patterns |
| 2363 |
and Swing GUI (Olivier Parent)</li> |
| 2364 |
<li>Fixed invalid character encoding in German Swing GUI |
| 2365 |
translation (Olivier Parent)</li> |
| 2366 |
<li>Fix locale used for date format in project stats (K. |
| 2367 |
Hashimoto)</li> |
| 2368 |
<li>Fixed LongDescription elements in xml:withMessages output |
| 2369 |
format (K. Hashimoto)</li> |
| 2370 |
</ul> |
| 2371 |
|
| 2372 |
<p>Changes since version 0.8.6:</p> |
| 2373 |
|
| 2374 |
<ul> |
| 2375 |
|
| 2376 |
<li>Extend Naming detector to look for classes that are named |
| 2377 |
XXXException but that are not Exceptions (Dave Brosius)</li> |
| 2378 |
<li>New detector to find classes that expose semaphores in the |
| 2379 |
public implementation through the 'this' reference. (Dave Brosius) |
| 2380 |
</li> |
| 2381 |
<li>New Style detector to find Struts Action/Servlet derived |
| 2382 |
classes that reference instance member variable not in |
| 2383 |
synchronized blocks. (Dave Brosius)</li> |
| 2384 |
<li>New Style detector to find classes that declare |
| 2385 |
implementation of interfaces that are already implemented by super |
| 2386 |
classes (Dave Brosius)</li> |
| 2387 |
<li>New Style detector to find circular dependencies between |
| 2388 |
classes (Dave Brosius)</li> |
| 2389 |
<li>New Style detector to find unnecessary math on constants |
| 2390 |
(Dave Brosius)</li> |
| 2391 |
<li>New detector to find equality comparisons using floating |
| 2392 |
point math (Jay Dunning)</li> |
| 2393 |
<li>New faster detector to find local self assignments (Bill |
| 2394 |
Pugh)</li> |
| 2395 |
<li>New detector to find infinite recursive loops (Bill Pugh) |
| 2396 |
</li> |
| 2397 |
<li>New detector to find for loops with an incorrect increment |
| 2398 |
(Bill Pugh)</li> |
| 2399 |
<li>New detector to find suspicious uses of |
| 2400 |
BufferedReader.readLine() and String.indexOf() (Bill Pugh)</li> |
| 2401 |
<li>New detector to find suspicious integer to double casts |
| 2402 |
(David Hovemeyer, Bill Pugh)</li> |
| 2403 |
<li>New detector to find invalid regular expression patterns |
| 2404 |
(Bill Pugh)</li> |
| 2405 |
<li>New detector to find Bloch/Gafter Java puzzlers (Bill |
| 2406 |
Pugh)</li> |
| 2407 |
|
| 2408 |
|
| 2409 |
<li>New system property to suppress reporting of DLS based on |
| 2410 |
local variable name (Glenn Boysko)</li> |
| 2411 |
<li>Enhancements to configuration dialog in Eclipse plugin, |
| 2412 |
allow for saving enabled detectors in Eclipse projects (Phil |
| 2413 |
Crosby)</li> |
| 2414 |
<li>Sortable columns in detector dialog (Dave Brosius)</li> |
| 2415 |
<li>New tab in gui for showing bugs grouped by category (Dave |
| 2416 |
Brosius)</li> |
| 2417 |
<li>Improved German translation of Swing GUI (Thomas Kuehne)</li> |
| 2418 |
<li>Improved source file reporting in Emacs output format (Len |
| 2419 |
Trigg)</li> |
| 2420 |
<li>Improvements to redundant null comparison detector (Bill |
| 2421 |
Pugh)</li> |
| 2422 |
<li>Localization of run analysis and analysis error dialogs in |
| 2423 |
Swing GUI (K. Hashimoto)</li> |
| 2424 |
|
| 2425 |
|
| 2426 |
<li>Don't scan equals methods in FindHEMismatch if code is |
| 2427 |
native (Greg Bentz)</li> |
| 2428 |
<li>French translation fixes (David Cotton)</li> |
| 2429 |
<li>Internationalization report fixes (K. Hashimoto)</li> |
| 2430 |
<li>Japanese translations updates (SHISEI Hanai)</li> |
| 2431 |
</ul> |
| 2432 |
|
| 2433 |
<p>Changes since version 0.8.5:</p> |
| 2434 |
<ul> |
| 2435 |
|
| 2436 |
<li>New detector to find catch blocks that may inadvertently |
| 2437 |
catch runtime exceptions (Brian Goetz)</li> |
| 2438 |
<li>New detector to find objects that are instantiated based |
| 2439 |
on classes that only have static methods and fields, using the |
| 2440 |
synthesized constructor (Dave Brosius)</li> |
| 2441 |
<li>New detector to find calls to Thread.interrupted() in a |
| 2442 |
non static context, and especially with non currentThread() |
| 2443 |
threads (Dave Brosius)</li> |
| 2444 |
<li>New detector to find calls to equals() methods that use |
| 2445 |
Object's version. (Dave Brosius)</li> |
| 2446 |
<li>New detector to find Applets that call methods in the |
| 2447 |
constructor referring to the AppletStub (Dave Brosius)</li> |
| 2448 |
<li>New detector to find some cases of infinite recursion |
| 2449 |
(Bill Pugh)</li> |
| 2450 |
<li>New detector to find dead stores to local variables (David |
| 2451 |
Hovemeyer, Bill Pugh)</li> |
| 2452 |
<li>Extend Dumb Method detector for toUpperCase(), |
| 2453 |
toLowerCase() without a locale, new Integer(1).toString(), new |
| 2454 |
XXX().getClass(), and new Thread() without a run implementation |
| 2455 |
(Dave Brosius) |
| 2456 |
</li> |
| 2457 |
<li>Ant task supports "errorProperty" attribute, which sets an |
| 2458 |
Ant property to "true" if an error occurs running FindBugs |
| 2459 |
(Michael Tamm)</li> |
| 2460 |
<li>Eclipse plugin allows filtering of warnings by bug |
| 2461 |
category, priority (David Hovemeyer)</li> |
| 2462 |
<li>Swing GUI allows filtering of warnings by bug category |
| 2463 |
(David Hovemeyer)</li> |
| 2464 |
<li>Ability to annotate methods using Java 1.5 annotations |
| 2465 |
that suppress FindBugs warnings (Bill Pugh)</li> |
| 2466 |
<li>New -adjustExperimental for lowering priority of |
| 2467 |
BugPatterns that are experimental (Dave Brosius)</li> |
| 2468 |
<li>Allow for command line options 'files' using the @ symbol |
| 2469 |
(David Hovemeyer)</li> |
| 2470 |
<li>New -adjustPriority command line option to for adjusting |
| 2471 |
bug priorites (David Hovemeyer)</li> |
| 2472 |
<li>Added an Edit menu (cut/copy/paste) to Swing GUI (Dave |
| 2473 |
Brosius)</li> |
| 2474 |
<li>French translation supplied (David Cotton) |
| 2475 |
</li> |
| 2476 |
</ul> |
| 2477 |
|
| 2478 |
<p>Changes since version 0.8.4:</p> |
| 2479 |
<ul> |
| 2480 |
|
| 2481 |
<li>New detector for volatile references to arrays (Bill Pugh) |
| 2482 |
</li> |
| 2483 |
<li>New detector to find instanceof usage where inheritance |
| 2484 |
can be determined statically (Dave Brosius)</li> |
| 2485 |
<li>New detector to find ResultSet.getXXX updateXXX calls |
| 2486 |
using index 0 (Dave Brosius)</li> |
| 2487 |
<li>New detector to find empty zip or jar entries (Bill Pugh) |
| 2488 |
|
| 2489 |
|
| 2490 |
</li> |
| 2491 |
<li>HTML output generation using built-in XSLT stylesheet or |
| 2492 |
user-defined stylesheet (David Hovemeyer)</li> |
| 2493 |
<li>Allow URLs to be specified to analyze zip/jar files, local |
| 2494 |
directories, and single classfiles (David Hovemeyer)</li> |
| 2495 |
<li>New command line option -onlyAnalyze restricts analysis to |
| 2496 |
selected classes and packages without reducing accuracy (David |
| 2497 |
Hovemeyer)</li> |
| 2498 |
<li>Allow Swing GUI to show source code in jar files on |
| 2499 |
Windows systems (Dave Brosius) |
| 2500 |
</li> |
| 2501 |
<li>Fix the Switch Fall Through detector (Dave Brosius, David |
| 2502 |
Hovemeyer, Bill Pugh)</li> |
| 2503 |
<li>MacOS GUI fixes (Rohan Lloyd)</li> |
| 2504 |
<li>Fix false positive in BOA in case where method is |
| 2505 |
correctly and 'incorrectly' overridden (Dave Brosius)</li> |
| 2506 |
<li>Fixed memory blowup when analyzing methods which access a |
| 2507 |
large number of fields (David Hovemeyer)</li> |
| 2508 |
</ul> |
| 2509 |
|
| 2510 |
<p>Changes since version 0.8.3:</p> |
| 2511 |
<ul> |
| 2512 |
<li>Initial and preliminary localization of the Swing |
| 2513 |
GUI. Translations by: |
| 2514 |
<ul> |
| 2515 |
<li>German - Peter D. Stout, Holger Stenzhorn</li> |
| 2516 |
<li>Finnish - Juha Knuutila</li> |
| 2517 |
<li>Estonian - Tanel Lebedev</li> |
| 2518 |
<li>Japanese - Hanai Shisei</li> |
| 2519 |
</ul> |
| 2520 |
</li> |
| 2521 |
<li>Eliminated debug print statements inadvertently left |
| 2522 |
enabled</li> |
| 2523 |
<li>Reverted some changes in the open stream detector: this |
| 2524 |
should fix some false positives that were introduced in the |
| 2525 |
previous release</li> |
| 2526 |
<li>Fixed a couple missing class reports</li> |
| 2527 |
</ul> |
| 2528 |
|
| 2529 |
<p>Changes since version 0.8.2:</p> |
| 2530 |
<ul> |
| 2531 |
|
| 2532 |
|
| 2533 |
<li>New detector to find improperly overridden GUI Adapter |
| 2534 |
classes (Dave Brosius)</li> |
| 2535 |
<li>New detector to find improperly setup JUnit TestCases |
| 2536 |
(Dave Brosius)</li> |
| 2537 |
<li>New detector to find variables that mask class level |
| 2538 |
fields (Dave Brosius)</li> |
| 2539 |
<li>New detector to find comparisons of values computed with |
| 2540 |
bitwise operators that always yield the same result (Tom Truscott) |
| 2541 |
</li> |
| 2542 |
<li>New detector to find unsafe getClass().getResource() calls |
| 2543 |
(Bill Pugh)</li> |
| 2544 |
<li>New detector to find GUI changes not in GUI thread but in |
| 2545 |
static main (Bill Pugh)</li> |
| 2546 |
<li>New detector to find calls to Collection.toArray() with |
| 2547 |
zero-length array argument; it is more efficient to pass an array |
| 2548 |
the size of the collection, which can be populated and returned as |
| 2549 |
the result (Dave Brosius) |
| 2550 |
</li> |
| 2551 |
<li>Better suppression of false warnings in various detectors |
| 2552 |
(Bill Pugh, David Hovemeyer)</li> |
| 2553 |
<li>Enhancement to ReadReturnShouldBeChecked detector for |
| 2554 |
skip() (Dave Brosius)</li> |
| 2555 |
<li>Enhancement to DumbMethods detector (Dave Brosius)</li> |
| 2556 |
<li>Open stream detector does not report wrappers of streams |
| 2557 |
passed as method parameters (David Hovemeyer) |
| 2558 |
</li> |
| 2559 |
<li>Cancel confirmation dialog in Swing GUI (Pete Angstadt)</li> |
| 2560 |
<li>Better relative path saving in Project file (Dave Brosius) |
| 2561 |
</li> |
| 2562 |
<li>Detector Priority in GUI is now saved in prefs file (Dave |
| 2563 |
Brosius)</li> |
| 2564 |
<li>Controls in GUI to reorder source and classpath entries, |
| 2565 |
and ability to flip between Project details and bugs pages (Dave |
| 2566 |
Brosius)</li> |
| 2567 |
<li>In Swing GUI, analysis error dialog supports "Select All" |
| 2568 |
and "Copy" operations for easy generation of error reports (Dave |
| 2569 |
Brosius)</li> |
| 2570 |
<li>Complete translation of bug descriptions and messages into |
| 2571 |
Japanese (Hanai Shisei) |
| 2572 |
</li> |
| 2573 |
<li>Fixed bug in DroppedException detector (Dave Brosius) |
| 2574 |
</li> |
| 2575 |
<li>The source distribution defaults to using JDK 1.5 javac to |
| 2576 |
compile, but support for compiling with JSR-14 prototype is still |
| 2577 |
supported</li> |
| 2578 |
</ul> |
| 2579 |
|
| 2580 |
<p>Changes since version 0.8.1:</p> |
| 2581 |
<ul> |
| 2582 |
<li>Fixed a critical ClassCastException bug (triggered if the |
| 2583 |
-workHard option was used, and an exception type was merged with |
| 2584 |
an array type during type inference)</li> |
| 2585 |
</ul> |
| 2586 |
|
| 2587 |
<p>Changes since version 0.8.0:</p> |
| 2588 |
<ul> |
| 2589 |
<li>Disabled SwitchFallthrough detector to work around |
| 2590 |
NullPointerExceptions</li> |
| 2591 |
<li>Added some additional false positive suppression |
| 2592 |
heuristics</li> |
| 2593 |
</ul> |
| 2594 |
|
| 2595 |
<p>Also, two contributors to the 0.8.0 release were |
| 2596 |
inadvertently left out of the credits:</p> |
| 2597 |
<ul> |
| 2598 |
<li>Pete Angstadt fixed several problems in the Swing GUI</li> |
| 2599 |
<li>Francis Lalonde provided a task resource file for the |
| 2600 |
FindBugs Ant task</li> |
| 2601 |
</ul> |
| 2602 |
|
| 2603 |
<p>Changes since version 0.7.4:</p> |
| 2604 |
<ul> |
| 2605 |
<li>New detector to look for uses of "+" operator to |
| 2606 |
concatenate String objects in a loop (Dave Brosius)</li> |
| 2607 |
<li>Reference comparison detector looks for places where the |
| 2608 |
argument passed to the equals(Object) method isn't the same type |
| 2609 |
as the receiver object</li> |
| 2610 |
<li>Better suppression of false warnings in many detectors</li> |
| 2611 |
<li>Many improvements to Eclipse plugin (Andrey Loskutov, |
| 2612 |
Peter Friese)</li> |
| 2613 |
<li>Fixed problem with building Eclipse plugin on Windows |
| 2614 |
(Thomas Klaeger)</li> |
| 2615 |
<li>Open stream detector looks for unclosed PreparedStatement |
| 2616 |
objects (Thomas Klaeger, Rohan Lloyd)</li> |
| 2617 |
<li>Fix for open stream detector: it wasn't detecting close() |
| 2618 |
methods called through an invokeinterface instruction (Thomas |
| 2619 |
Klaeger)</li> |
| 2620 |
<li>Refactoring of visitor classes to enforce use of accessors |
| 2621 |
for visited class features (Brian Goetz)</li> |
| 2622 |
</ul> |
| 2623 |
|
| 2624 |
<p>Changes since version 0.7.3:</p> |
| 2625 |
<ul> |
| 2626 |
<li>Experimental modification of open stream detector to look |
| 2627 |
for non-escaping JDBC resources (connections and statements) that |
| 2628 |
aren't closed on all paths out of method</li> |
| 2629 |
<li>Eclipse plugin fixed so it compiles and runs on Eclipse |
| 2630 |
2.1.x (Peter Friese)</li> |
| 2631 |
<li>Option to Swing GUI and command line to generate project |
| 2632 |
file using relative paths for archives, source directories, and |
| 2633 |
aux classpath entries (Dave Brosius)</li> |
| 2634 |
<li>Improvements to findbugs.bat script for launching FindBugs |
| 2635 |
on Windows (Dave Brosius)</li> |
| 2636 |
<li>Updated Japanese message translations (Hiroshi Okugawa)</li> |
| 2637 |
<li>Uncalled private methods are now reported as low priority, |
| 2638 |
unless they have the same name as another method in the class |
| 2639 |
(which is more likely to indicate an actual bug)</li> |
| 2640 |
<li>Added some missing data in the bug messages XML files</li> |
| 2641 |
<li>Fixed some problems building from source on Windows |
| 2642 |
systems</li> |
| 2643 |
<li>Various minor bug fixes</li> |
| 2644 |
</ul> |
| 2645 |
|
| 2646 |
<p>Changes since version 0.7.2:</p> |
| 2647 |
<ul> |
| 2648 |
<li>Enhanced Eclipse plugin, which displays the detailed bug |
| 2649 |
description in a view (Phil Crosby)</li> |
| 2650 |
<li>Various tweaks to existing detectors to reduce false |
| 2651 |
warnings</li> |
| 2652 |
<li>New command line option <code> -workHard </code> enables |
| 2653 |
pruning of infeasible or unlikely exception edges, which results |
| 2654 |
in better accuracy in the open stream detector, at the expense of |
| 2655 |
a 30%-100% slowdown |
| 2656 |
</li> |
| 2657 |
<li>New website and HTML documentation design</li> |
| 2658 |
<li>Documentation includes an HTML document with descriptions |
| 2659 |
of all bug patterns reported by FindBugs</li> |
| 2660 |
<li>Web page has a link to a <a |
| 2661 |
href="http://www.simeji.com/findbugs/doc/manual_ja/index.html">Japanese |
| 2662 |
translation</a> of the FindBugs manual, contributed by Hiroshi |
| 2663 |
Okugawa |
| 2664 |
</li> |
| 2665 |
<li>Changed the Inconsistent Synchronization detector so that |
| 2666 |
fields synchronized 50% of the time (or more) are reported as |
| 2667 |
medium priority bugs (previously they were reported as low)</li> |
| 2668 |
<li>New detector to find code that catches |
| 2669 |
IllegalMonitorStateException</li> |
| 2670 |
<li>New detector to find private methods that are never called |
| 2671 |
</li> |
| 2672 |
<li>New detector to find suspicious uses of |
| 2673 |
non-short-circuiting boolean operators ( <code> & </code> and |
| 2674 |
<code> | </code> , rather than <code> && </code> and <code> |
| 2675 |
|| </code> ) |
| 2676 |
</li> |
| 2677 |
</ul> |
| 2678 |
|
| 2679 |
<p>Changes since version 0.7.1:</p> |
| 2680 |
<ul> |
| 2681 |
<li>Incorporated patched version of BCEL, which allows classes |
| 2682 |
compiled with JDK 1.5.0 beta to be analyzed</li> |
| 2683 |
<li>Fixed some bugs related to lookups of array classes</li> |
| 2684 |
<li>Fixed bug that prevented GUI from loading XML result files |
| 2685 |
when running under JDK 1.5.0 beta</li> |
| 2686 |
<li>Added new experimental bug detector, LazyInit, which looks |
| 2687 |
for potentially buggy lazy initializations of static fields</li> |
| 2688 |
<li>Because of long filenames, switched to distributing the |
| 2689 |
source archive as a zip file rather than a tar file</li> |
| 2690 |
<li>The 0.7.1 source tarfile was botched - 0.7.2 has a valid |
| 2691 |
source archive</li> |
| 2692 |
<li>Fixed some problems in the Ant build script</li> |
| 2693 |
<li>Fixed NullPointerException when checking Class-Path |
| 2694 |
attribute for Jar files without manifests</li> |
| 2695 |
<li>Generate version numbers for the core and UI Eclipse |
| 2696 |
plugins using the Version class; all version numbers are now in a |
| 2697 |
common location</li> |
| 2698 |
</ul> |
| 2699 |
|
| 2700 |
<p>Changes since version 0.7.0:</p> |
| 2701 |
<ul> |
| 2702 |
<li>Eclipse plugin (contributed by Peter Friese)</li> |
| 2703 |
<li>Source package structure rearranged: all source (other |
| 2704 |
than Eclipse plugin UI) is in the edu.umd.cs.findbugs package, or |
| 2705 |
a subpackage</li> |
| 2706 |
<li>Class-Path attributes of manifests of analyzed jar files |
| 2707 |
are used to set the aux classpath automatically (Peter D. Stout)</li> |
| 2708 |
<li>GUI starts in directory specified by user.home property |
| 2709 |
(Peter D. Stout)</li> |
| 2710 |
<li>Added -project option to GUI (Mikko T.)</li> |
| 2711 |
<li>Added -look:{plastic,gtk,native} option to GUI, for |
| 2712 |
setting look and feel (Mikko T.)</li> |
| 2713 |
<li>Fixed DataflowAnalysisException in inconsistent |
| 2714 |
synchronization detector</li> |
| 2715 |
<li>Ant task supports failOnError parameter (Rohan Lloyd)</li> |
| 2716 |
<li>Serializable class warnings are downgraded to low priority |
| 2717 |
for GUI classes</li> |
| 2718 |
<li>MWN detector will only report calls to wait(), notify(), |
| 2719 |
and notifyAll() methods that have the correct signature</li> |
| 2720 |
<li>FindBugs works with latest CVS version of BCEL</li> |
| 2721 |
<li>Zip and Jar files may be added to the source path</li> |
| 2722 |
<li>The GUI will automatically find source files residing in |
| 2723 |
analyzed Zip or Jar files</li> |
| 2724 |
</ul> |
| 2725 |
|
| 2726 |
<p>Note that the version number jumped from 0.6.6 to 0.6.9; |
| 2727 |
there were no 0.6.7 or 0.6.8 releases.</p> |
| 2728 |
<p>Changes since version 0.6.9:</p> |
| 2729 |
<ul> |
| 2730 |
<li>Added -conserveSpace option to reduce memory use at the |
| 2731 |
expense of analysis precision</li> |
| 2732 |
<li>Bug fixes in findbugs.bat script: JAVA_HOME handling, |
| 2733 |
autodetection of FINDBUGS_HOME, missing output with -textui</li> |
| 2734 |
<li>Fixed NullPointerException when a missing class is |
| 2735 |
encountered</li> |
| 2736 |
</ul> |
| 2737 |
|
| 2738 |
<p>Changes since version 0.6.6:</p> |
| 2739 |
<ul> |
| 2740 |
<li>The null pointer dereference detector is more powerful</li> |
| 2741 |
<li>Significantly improved heuristics and bug fixes in |
| 2742 |
inconsistent synchronization detector</li> |
| 2743 |
<li>Improved heuristics in open stream and dropped exception |
| 2744 |
detectors; fewer false positives should be reported</li> |
| 2745 |
<li>Save HTML summary in XML results files, rather than |
| 2746 |
recomputing; this makes loading results in GUI much faster</li> |
| 2747 |
<li>Report at most one String comparison using == or != per |
| 2748 |
method</li> |
| 2749 |
<li>The findbugs.bat script on Windows autodetects |
| 2750 |
FINDBUGS_HOME, and doesn't open a DOS window when launching the |
| 2751 |
GUI (contributed by TJSB)</li> |
| 2752 |
<li>Emacs reporting format (contributed by David Li)</li> |
| 2753 |
<li>Various bug fixes</li> |
| 2754 |
</ul> |
| 2755 |
|
| 2756 |
<p>Changes since 0.6.5:</p> |
| 2757 |
<ul> |
| 2758 |
<li>Rewritten inconsistent synchronization detector; accuracy |
| 2759 |
is significantly improved, and bug reports are prioritized</li> |
| 2760 |
<li>New detector to find self assignment (x=x) of local |
| 2761 |
variables (suggested by Jeff Martin)</li> |
| 2762 |
<li>New detector to find calls to wait(), notify(), and |
| 2763 |
notifyAll() on an object which is not obviously locked</li> |
| 2764 |
<li>Open stream detector now reports Readers and Writers</li> |
| 2765 |
<li>Fixed bug in finalizer idioms detector which caused |
| 2766 |
spurious warnings about failure to call super.finalize() (reported |
| 2767 |
by Jim Menard)</li> |
| 2768 |
<li>Fixed bug where output stream was not closed using non-XML |
| 2769 |
output (reported by Sigiswald Madou)</li> |
| 2770 |
<li>Fixed corrupted HTML bug detail message (reported by |
| 2771 |
Trevor Harmon)</li> |
| 2772 |
</ul> |
| 2773 |
|
| 2774 |
<p>Changes since version 0.6.4:</p> |
| 2775 |
<ul> |
| 2776 |
<li>For redundant comparison of reference values, fixed false |
| 2777 |
positives resulting from duplication of code in finally blocks</li> |
| 2778 |
<li>Fixed false positives resulting from wrapped byte array |
| 2779 |
streams left open</li> |
| 2780 |
<li>Fixed bug in Ant task preventing output file from working |
| 2781 |
properly if a relative path was used</li> |
| 2782 |
</ul> |
| 2783 |
|
| 2784 |
<p>Changes since version 0.6.3:</p> |
| 2785 |
<ul> |
| 2786 |
<li>Fixed bug in Ant task where output would be corrupted, and |
| 2787 |
added a <code> timeout </code> attribute |
| 2788 |
</li> |
| 2789 |
<li>Added -outputFile option to text UI, for explicitly |
| 2790 |
specifying an output file</li> |
| 2791 |
<li>GUI has a summary window, for statistics about overall bug |
| 2792 |
densities (contributed by Mike Fagan)</li> |
| 2793 |
<li>Find redundant comparisons of reference values</li> |
| 2794 |
<li>More accurate detection of Strings compared with == and != |
| 2795 |
operators</li> |
| 2796 |
<li>Detection of other reference types which should generally |
| 2797 |
not be compared with == and != operators; Boolean, Integer, etc.</li> |
| 2798 |
<li>Find non-transient non-serializable instance fields in |
| 2799 |
Serializable classes</li> |
| 2800 |
<li>Source code may be compiled with latest early access |
| 2801 |
generics-enabled javac (version 2.2)</li> |
| 2802 |
</ul> |
| 2803 |
|
| 2804 |
<p>Changes since version 0.6.2:</p> |
| 2805 |
<ul> |
| 2806 |
<li>GUI supports filtering bugs by priority</li> |
| 2807 |
<li>Ant task rewritten; supports all functionality offered by |
| 2808 |
Text UI (contributed by Mike Fagan)</li> |
| 2809 |
<li>Ant task is fully documented in the manual</li> |
| 2810 |
<li>Classes in nested archives are analyzed; this allows full |
| 2811 |
support for analyzing .ear and .war files (contributed by Mike |
| 2812 |
Fagan)</li> |
| 2813 |
<li>DepthFirstSearch changed to use non-recursive |
| 2814 |
implementation; this should fix the StackOverflowErrors that |
| 2815 |
several users reported</li> |
| 2816 |
<li>Various minor bugfixes and improvements</li> |
| 2817 |
</ul> |
| 2818 |
|
| 2819 |
<p>Changes since version 0.6.1:</p> |
| 2820 |
<ul> |
| 2821 |
<li>New detector to look for useless control flow (suggested |
| 2822 |
by Richard P. King and Mike Fagan)</li> |
| 2823 |
<li>Look for places where return value of |
| 2824 |
java.io.File.createNewFile() is ignored (suggested by Richard P. |
| 2825 |
King)</li> |
| 2826 |
<li>Fixed bug in resolution of source files (only the first |
| 2827 |
source directory was searched)</li> |
| 2828 |
<li>Fixed a NullPointerException in the bytecode pattern |
| 2829 |
matching code</li> |
| 2830 |
<li>Ant task supports project files (contributed by Mike |
| 2831 |
Fagan)</li> |
| 2832 |
<li>Unix findbugs script honors the <code> JAVA_HOME </code> |
| 2833 |
environment variable (contributed by Pedro Morais) |
| 2834 |
</li> |
| 2835 |
<li>Allow .war and .ear files to be analyzed</li> |
| 2836 |
</ul> |
| 2837 |
|
| 2838 |
<p>Changes since version 0.6.0:</p> |
| 2839 |
<ul> |
| 2840 |
<li>New bug pattern detector which looks for places where a |
| 2841 |
null pointer might be dereferenced</li> |
| 2842 |
<li>New bug pattern detector which looks for IO streams that |
| 2843 |
are opened, do not escape the method, and are not closed on all |
| 2844 |
paths out of the method</li> |
| 2845 |
<li>New bug pattern detector to find methods that can return |
| 2846 |
null instead of a zero-length array</li> |
| 2847 |
<li>New bug pattern detector to find places where the == or != |
| 2848 |
operators are used to compare String objects</li> |
| 2849 |
<li>Command line interface can save bugs as XML</li> |
| 2850 |
<li>GUI can save bugs to and load bugs from XML</li> |
| 2851 |
<li>An "Annotations" window in the GUI allows the user to add |
| 2852 |
textual annotations to bug reports; these annotations are |
| 2853 |
preserved when bugs are saved as XML</li> |
| 2854 |
<li>In this release, the Japanese bug summary translations by |
| 2855 |
Germano Leichsenring are really included (they were inadvertently |
| 2856 |
omitted in the previous release)</li> |
| 2857 |
<li>Completely rewrote the control flow graph builder, |
| 2858 |
hopefully for the last time</li> |
| 2859 |
<li>Simplified implementation of control flow graphs, which |
| 2860 |
should reduce memory use and possibly improve performance</li> |
| 2861 |
<li>Improvements to command line interface (list bug |
| 2862 |
priorities, filter by priority, specify aux classpath, specify |
| 2863 |
project to analyze)</li> |
| 2864 |
<li>Various bug fixes and enhancements</li> |
| 2865 |
</ul> |
| 2866 |
|
| 2867 |
<p>Changes since version 0.5.4</p> |
| 2868 |
<ul> |
| 2869 |
<li>Added an <a href="http://ant.apache.org/">Ant</a> task for |
| 2870 |
FindBugs, contributed by Mike Fagan. |
| 2871 |
</li> |
| 2872 |
<li>Added a GUI dialog which allows individual bug pattern |
| 2873 |
detectors to be enabled or disabled. Disabling certain slow |
| 2874 |
detectors can greatly speed up analysis of large programs, at the |
| 2875 |
expense of reducing the number of potential bugs found.</li> |
| 2876 |
<li>Added a new detector for finding improperly ignored return |
| 2877 |
values for methods such as <code> String.trim() </code> . |
| 2878 |
Suggested by Andreas Mandel. |
| 2879 |
</li> |
| 2880 |
<li>Japanese translations of the bug summaries, contributed by |
| 2881 |
Germano Leichsenring.</li> |
| 2882 |
<li>Filtering of results is supported in command line |
| 2883 |
interface. See the <a href="manual/index.html">FindBugs manual</a> |
| 2884 |
for details. |
| 2885 |
</li> |
| 2886 |
<li>Added "byte code patterns", a general pattern matching |
| 2887 |
infrastructure for bytecode instructions. This feature |
| 2888 |
significantly reduces the complexity of implementing new bug |
| 2889 |
pattern detectors.</li> |
| 2890 |
<li>Enabled a new general dataflow analysis to track values in |
| 2891 |
methods.</li> |
| 2892 |
<li>Switched to new control-flow graph builder implementation. |
| 2893 |
</li> |
| 2894 |
</ul> |
| 2895 |
|
| 2896 |
<p>Changes since version 0.5.3</p> |
| 2897 |
<ul> |
| 2898 |
<li>Fixed a bug in the script used to launch FindBugs on |
| 2899 |
Windows platforms.</li> |
| 2900 |
<li>Fixed crashes when analyzing class files without source |
| 2901 |
line information.</li> |
| 2902 |
<li>All major errors are reported using an error dialog; file |
| 2903 |
not found errors are more informative.</li> |
| 2904 |
<li>Minor GUI improvements.</li> |
| 2905 |
</ul> |
| 2906 |
|
| 2907 |
<p>Changes since version 0.5.2</p> |
| 2908 |
<ul> |
| 2909 |
<li>All of the source code and related files are in a single |
| 2910 |
directory tree.</li> |
| 2911 |
<li>Updated some of the detectors to produce source line |
| 2912 |
information.</li> |
| 2913 |
<li><a href="http://ant.apache.org/">Ant</a> build script and |
| 2914 |
several GUI enhancements and fixes contributed by Mike Fagan.</li> |
| 2915 |
<li>Converted to use a <a href="AddingDetectors.txt">plugin |
| 2916 |
architecture</a> for loading bug detectors. |
| 2917 |
</li> |
| 2918 |
<li>Eliminated generics-related compiler warnings.</li> |
| 2919 |
<li>More complete documentation has been added.</li> |
| 2920 |
</ul> |
| 2921 |
|
| 2922 |
<p>Changes since version 0.5.1:</p> |
| 2923 |
<ul> |
| 2924 |
<li>Fixed a large number of bugs in the BCEL Repository and |
| 2925 |
FindBugs's use of the Repository. With these changes, |
| 2926 |
FindBugs should <em>never</em> crash or otherwise misbehave |
| 2927 |
because of Repository lookup failures. Because of these |
| 2928 |
changes, you must use a modified version of <code> bcel.jar |
| 2929 |
</code> with FindBugs. This jar file is included in the FindBugs |
| 2930 |
0.5.2 binary release. A complete patch containing the <a |
| 2931 |
href="http://faculty.ycp.edu/~dhovemey/bcel-30-April-2003.patch">modifications |
| 2932 |
against the BCEL CVS main branch as of April 30, 2003</a> is also |
| 2933 |
available. |
| 2934 |
</li> |
| 2935 |
<li>Implemented the "auxiliary classpath entry list". |
| 2936 |
Aux classpath entries can be added to a project to provide classes |
| 2937 |
that are referenced by the analyzed application, but should not |
| 2938 |
themselves be analyzed. Having all referenced classes |
| 2939 |
available allows FindBugs to produce more accurate results.</li> |
| 2940 |
</ul> |
| 2941 |
|
| 2942 |
<p>Changes since version 0.5.0:</p> |
| 2943 |
<ul> |
| 2944 |
<li>Many user interface bugs have been fixed.</li> |
| 2945 |
<li>Upgraded to a recent CVS version of BCEL, with some bug |
| 2946 |
fixes. This should prevent FindBugs from crashing when there |
| 2947 |
is a failure to find a class on the classpath.</li> |
| 2948 |
<li>Added support for Plastic look and feel from <a |
| 2949 |
href="http://www.jgoodies.com/">jgoodies.com</a>. |
| 2950 |
</li> |
| 2951 |
<li>Major overhaul of infrastructure for doing dataflow |
| 2952 |
analysis.</li> |
| 2953 |
</ul> @HTML_FOOTER@ |
| 2954 |
|
| 2955 |
</td> |
| 2956 |
|
| 2957 |
</tr> |
| 2958 |
</table> |
| 2959 |
|
| 2960 |
</body> |
| 2961 |
|
| 2962 |
</html> |