commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: [QUESTION] Is switching from array parameter to varargs binary compatible?
Date Sun, 11 May 2014 09:22:54 GMT
On 10 May 2014 14:13, Thomas Vandahl <tv@apache.org> wrote:
> On 05.05.14 19:40, Benedikt Ritter wrote:
>> Hi,
>>
>> we have a pull request at github for [lang] which proposes to introduce new
>> methods in NumberUtils that take varargs as input parameters instead of
>> arrays [1]. I think a better solution would be to change those old methods
>> to use varargs instead of introducing new methods. Since I'm not sure how
>> this affects binary compatibility, I'd like to here what others thing about
>> this.
>
> If you look at the generated byte code, the result is identical.

In which case, why do we need to bother to change the source?
The compiler only has the byte-code as reference when compiling source
that uses the method.

> Bye, Thomas.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message