This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Warn about logging code where closure of toString() calls synchronized methods | ||
---|---|---|---|
Product: | java | Reporter: | _ tboudreau <tboudreau> |
Component: | Hints | Assignee: | Svata Dedic <sdedic> |
Status: | NEW --- | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Mac OS X | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
_ tboudreau
2009-12-08 12:52:39 UTC
Meant to say the anti-pattern is logger.log(Level.WHATEVER, "Foo {0}", someObject) where the closure of someObject.toString() calls a synchronized method. Requires a lot of analysis, unless we somehow cache this data, but it is something that can be a real problem. |