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

bugzilla-daemon at pixie.qos.ch bugzilla-daemon at pixie.qos.ch
Tue Sep 15 17:49:25 CEST 2009


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


Thorbjørn Ravn Andersen <thorbjoern at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thorbjoern at gmail.com




--- Comment #36 from Thorbjørn Ravn Andersen <thorbjoern at gmail.com>  2009-09-15 17:49:24 ---
Currently there is convenience methods for up to two objects before having to
resort to a new Object[] {...} construction, which I've personally hit several
times when wanting a third object.

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?

This also allows for avoiding the "what is the last argument" discussion.


-- 
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