[Bug 317] New: erroneous migration turns returned Logger into LoggerFactory

http://bugzilla.slf4j.org/show_bug.cgi?id=317 Priority: P5 Bug ID: 317 Assignee: slf4j-dev@qos.ch Summary: erroneous migration turns returned Logger into LoggerFactory Severity: normal Classification: Unclassified OS: Windows 2000 Reporter: garret@globalmentor.com Hardware: PC Status: NEW Version: 1.7.x Component: slf4j-migrator Product: SLF4J The migrator turns this: public Logger getLogger() { return logger; } into this: public LoggerFactory.getLogger() { return logger; } I guess the migrator must be using some naive regex---but I would have thought it would have at least prevented whitespace in matching "Logger.getLogger(". -- You are receiving this mail because: You are the assignee for the bug.

http://bugzilla.slf4j.org/show_bug.cgi?id=317 --- Comment #1 from garret@globalmentor.com <garret@globalmentor.com> --- Arg. It converts: fooInstance.setLogger(getLogger()); to: fooInstance.setLoggerFactory.getLogger()); This "migrator" doesn't seem to have any intelligence at all. It even leaves me with misplaced parentheses---and over 500 errors. It's going to be easier to convert all these source files by hand. This migrator doesn't seem to be worth much---it seems to me that a couple of regular expressions, while far from perfect, would do a better job than this migrator. -- You are receiving this mail because: You are the assignee for the bug.
participants (1)
-
bugzilla-daemon@qos.ch