Unnecessary proxy initialisation in CriteriaQueryTranslator
Description
Environment
None
Attachments
1
- 02 May 2011, 01:28 AM
Activity
Show:
Fabio Maulo July 30, 2011 at 2:11 PM
Closed after final release of NH3.2.0GA
Fixed
Details
Details
Assignee
Unassigned
UnassignedReporter
Marc Gerritsen
Marc GerritsenComponents
Fix versions
Affects versions
Priority
Who's Looking?
Open Who's Looking?
Created May 2, 2011 at 1:28 AM
Updated July 30, 2011 at 2:11 PM
Resolved May 2, 2011 at 7:26 AM
Who's Looking?
For the construction of a debug string the ToString method is called on a proxy.
This initializes the proxy unnecessary.
To make sure this does not happen anymore i wrapped the logger lines with if (logger.IsDebugEnabled).
I attached the patch I created to fix the bug.