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

bugzilla-daemon at pixie.qos.ch bugzilla-daemon at pixie.qos.ch
Tue Oct 9 11:32:28 CEST 2007


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





------- Comment #8 from joern at huxhorn.de  2007-10-09 11:32 -------
Hi Ceki.

The bindings do NOT need any changes!

Everything stays exactly like it is now. The slf4j-nop etc. are simply
implementing the 'Object[] args' version and their dependency will still be the
version without .5 appended.

The .5 version is *only* needed as a dependency of code that actually wants to
execute a call *using* varargs, i.e. modules that are 1.5 anyway. It's only
really needed at compile time since varargs are simply arrays at runtime. So
you could even replace the .5 version with the non-varargs version after
compilation and it would still execute without any problems.

So what you were probably missing was that varargs are, like generics, only a
compile-time trick.

Please let me know if you have any additional questions.

Joern.


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



More information about the slf4j-dev mailing list