Issue Details (XML | Word | Printable)

Key: LOGCXX-50
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Trivial Trivial
Assignee: Michaël CATANZARITI
Reporter: Jeff Hoffman
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Log4cxx

variable name clash in macro

Created: 04/Jan/05 09:39 AM   Updated: 04/Jan/05 12:28 PM
Return to search
Component/s: None
Affects Version/s: 0.9.7
Fix Version/s: 0.10.0

Time Tracking:
Not Specified

Environment: Linux

Resolution Date: 04/Jan/05 12:28 PM


 Description  « Hide
The LOG4CXX macros use a temporary ostringstream variable named oss which hides other declarations. For example, the following will print blanks.

ostringstream oss(“some stuff”);
LOG4CXX_INFO(logger, oss);

Possible fix is to use namespace with the temp variable.

It's a trivial bug, but a pain to track down.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Curt Arnold added a comment - 04/Jan/05 12:28 PM
Implementation of LOG4CXX_* macros in current CVS do not have this issue.

Curt Arnold made changes - 04/Jan/05 12:28 PM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Fix Version/s 0.9.8 [ 10782 ]