[slf4j-dev] [Bug 31] Varargs for Logger methods

bugzilla-daemon at pixie.qos.ch bugzilla-daemon at pixie.qos.ch
Tue Sep 15 18:41:14 CEST 2009


http://bugzilla.slf4j.org/show_bug.cgi?id=31





--- Comment #38 from Ceki Gulcu <listid at qos.ch>  2009-09-15 18:41:13 ---
> Since Object... is just a short cut for the compiler doing a new
> Object[] under the covers, would a reasonable and compatible approach
> be adding convenience methods for up to e.g. ten objects which all
> just reinvoke with a suitable Object array?

Adding convenience methods for up to 10 parameters would not be
backward compatible.

It would also require about 80 new methods in the org.slf4j.Logger
interface. Those 80 new methods would need to be implemented in every
binding (nop, simple, jdk14, jcl, log4j and logback), that's 480
additional method declarations! Since you asked, that's pretty unreasonable.
:-)

Maybe you meant some thing else by "adding convenience methods for up
to e.g. ten objects"?


-- 
Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the slf4j-dev mailing list