You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by Gary Gregory <ga...@gmail.com> on 2016/05/29 16:53:25 UTC
2.6 is not source compatible with 2.5
We are going to need to update the release notes and/or site for 2.6 to
note that the 2.6 is not source compatible with previous releases. I tested
going from 2.5 to 2.6 at work and got:
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /E:/vcs/svn/...XYZ..:[155,15] reference to error is ambiguous
both method
error(org.apache.logging.log4j.Marker,java.lang.String,java.lang.Object) in
org.apache.logging.log4j.Logger and method
error(java.lang.String,java.lang.Object,java.lang.Object) in
org.apache.logging.log4j.Logger match
[ERROR] /E:/vcs/svn/...XYZ...:[395,15] reference to trace is ambiguous
both method
trace(org.apache.logging.log4j.Marker,java.lang.String,java.lang.Object) in
org.apache.logging.log4j.Logger and method
trace(java.lang.String,java.lang.Object,java.lang.Object) in
org.apache.logging.log4j.Logger match
[INFO] 2 errors
with source code like:
public void xyz(final String message, final Throwable t) {
...
logger.error(null, message, t);
...
logger.trace(null, message, t);
...
}
Next time, I'll remember to test with a "real" client.
Gary
--
E-Mail: garydgregory@gmail.com | ggregory@apache.org
Java Persistence with Hibernate, Second Edition
<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory
Re: 2.6 is not source compatible with 2.5
Posted by Mikael Ståldal <mi...@magine.com>.
What is the use case for null as first parameter to a logger method?
On Sun, May 29, 2016 at 6:53 PM, Gary Gregory <ga...@gmail.com>
wrote:
> We are going to need to update the release notes and/or site for 2.6 to
> note that the 2.6 is not source compatible with previous releases. I tested
> going from 2.5 to 2.6 at work and got:
>
> [ERROR] COMPILATION ERROR :
> [INFO] -------------------------------------------------------------
> [ERROR] /E:/vcs/svn/...XYZ..:[155,15] reference to error is ambiguous
> both method
> error(org.apache.logging.log4j.Marker,java.lang.String,java.lang.Object) in
> org.apache.logging.log4j.Logger and method
> error(java.lang.String,java.lang.Object,java.lang.Object) in
> org.apache.logging.log4j.Logger match
> [ERROR] /E:/vcs/svn/...XYZ...:[395,15] reference to trace is ambiguous
> both method
> trace(org.apache.logging.log4j.Marker,java.lang.String,java.lang.Object) in
> org.apache.logging.log4j.Logger and method
> trace(java.lang.String,java.lang.Object,java.lang.Object) in
> org.apache.logging.log4j.Logger match
> [INFO] 2 errors
>
> with source code like:
>
> public void xyz(final String message, final Throwable t) {
> ...
> logger.error(null, message, t);
> ...
> logger.trace(null, message, t);
> ...
> }
>
> Next time, I'll remember to test with a "real" client.
>
> Gary
>
> --
> E-Mail: garydgregory@gmail.com | ggregory@apache.org
> Java Persistence with Hibernate, Second Edition
> <http://www.manning.com/bauer3/>
> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> Spring Batch in Action <http://www.manning.com/templier/>
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory
>
--
[image: MagineTV]
*Mikael Ståldal*
Senior software developer
*Magine TV*
mikael.staldal@magine.com
Grev Turegatan 3 | 114 46 Stockholm, Sweden | www.magine.com
Privileged and/or Confidential Information may be contained in this
message. If you are not the addressee indicated in this message
(or responsible for delivery of the message to such a person), you may not
copy or deliver this message to anyone. In such case,
you should destroy this message and kindly notify the sender by reply
email.
Re: 2.6 is not source compatible with 2.5
Posted by Ralph Goers <ra...@dslextreme.com>.
Darn. I wish you had caught that before the vote. That is not good.
Ralph
> On May 29, 2016, at 10:02 AM, Gary Gregory <ga...@gmail.com> wrote:
>
> On Sun, May 29, 2016 at 9:57 AM, Gary Gregory <garydgregory@gmail.com <ma...@gmail.com>> wrote:
> And to make it more difficult to see what's changed, we do not have @since 2.6 Javadoc markers for the new methods in Logger that expand arguments up to 10 Objects :-(
>
> I wonder which one of Clirr or Checkstyle could be extended to issue warnings if @since tags are missing on public methods?
>
> Gary
>
> Gary
>
> On Sun, May 29, 2016 at 9:53 AM, Gary Gregory <garydgregory@gmail.com <ma...@gmail.com>> wrote:
> We are going to need to update the release notes and/or site for 2.6 to note that the 2.6 is not source compatible with previous releases. I tested going from 2.5 to 2.6 at work and got:
>
> [ERROR] COMPILATION ERROR :
> [INFO] -------------------------------------------------------------
> [ERROR] /E:/vcs/svn/...XYZ..:[155,15] reference to error is ambiguous
> both method error(org.apache.logging.log4j.Marker,java.lang.String,java.lang.Object) in org.apache.logging.log4j.Logger and method error(java.lang.String,java.lang.Object,java.lang.Object) in org.apache.logging.log4j.Logger match
> [ERROR] /E:/vcs/svn/...XYZ...:[395,15] reference to trace is ambiguous
> both method trace(org.apache.logging.log4j.Marker,java.lang.String,java.lang.Object) in org.apache.logging.log4j.Logger and method trace(java.lang.String,java.lang.Object,java.lang.Object) in org.apache.logging.log4j.Logger match
> [INFO] 2 errors
>
> with source code like:
>
> public void xyz(final String message, final Throwable t) {
> ...
> logger.error(null, message, t);
> ...
> logger.trace(null, message, t);
> ...
> }
>
> Next time, I'll remember to test with a "real" client.
>
> Gary
>
> --
> E-Mail: garydgregory@gmail.com <ma...@gmail.com> | ggregory@apache.org <ma...@apache.org>
> Java Persistence with Hibernate, Second Edition <http://www.manning.com/bauer3/>
> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> Spring Batch in Action <http://www.manning.com/templier/>
> Blog: http://garygregory.wordpress.com <http://garygregory.wordpress.com/>
> Home: http://garygregory.com/ <http://garygregory.com/>
> Tweet! http://twitter.com/GaryGregory <http://twitter.com/GaryGregory>
>
>
> --
> E-Mail: garydgregory@gmail.com <ma...@gmail.com> | ggregory@apache.org <ma...@apache.org>
> Java Persistence with Hibernate, Second Edition <http://www.manning.com/bauer3/>
> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> Spring Batch in Action <http://www.manning.com/templier/>
> Blog: http://garygregory.wordpress.com <http://garygregory.wordpress.com/>
> Home: http://garygregory.com/ <http://garygregory.com/>
> Tweet! http://twitter.com/GaryGregory <http://twitter.com/GaryGregory>
>
>
> --
> E-Mail: garydgregory@gmail.com <ma...@gmail.com> | ggregory@apache.org <ma...@apache.org>
> Java Persistence with Hibernate, Second Edition <http://www.manning.com/bauer3/>
> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> Spring Batch in Action <http://www.manning.com/templier/>
> Blog: http://garygregory.wordpress.com <http://garygregory.wordpress.com/>
> Home: http://garygregory.com/ <http://garygregory.com/>
> Tweet! http://twitter.com/GaryGregory <http://twitter.com/GaryGregory>
Re: 2.6 is not source compatible with 2.5
Posted by Matt Sicker <bo...@gmail.com>.
That would be good. I try to remember to add @since everywhere I can
remember to, but an automated tool would help a lot.
On 29 May 2016 at 12:02, Gary Gregory <ga...@gmail.com> wrote:
> On Sun, May 29, 2016 at 9:57 AM, Gary Gregory <ga...@gmail.com>
> wrote:
>
>> And to make it more difficult to see what's changed, we do not have
>> @since 2.6 Javadoc markers for the new methods in Logger that expand
>> arguments up to 10 Objects :-(
>>
>
> I wonder which one of Clirr or Checkstyle could be extended to issue
> warnings if @since tags are missing on public methods?
>
> Gary
>
>>
>> Gary
>>
>> On Sun, May 29, 2016 at 9:53 AM, Gary Gregory <ga...@gmail.com>
>> wrote:
>>
>>> We are going to need to update the release notes and/or site for 2.6 to
>>> note that the 2.6 is not source compatible with previous releases. I tested
>>> going from 2.5 to 2.6 at work and got:
>>>
>>> [ERROR] COMPILATION ERROR :
>>> [INFO] -------------------------------------------------------------
>>> [ERROR] /E:/vcs/svn/...XYZ..:[155,15] reference to error is ambiguous
>>> both method
>>> error(org.apache.logging.log4j.Marker,java.lang.String,java.lang.Object) in
>>> org.apache.logging.log4j.Logger and method
>>> error(java.lang.String,java.lang.Object,java.lang.Object) in
>>> org.apache.logging.log4j.Logger match
>>> [ERROR] /E:/vcs/svn/...XYZ...:[395,15] reference to trace is ambiguous
>>> both method
>>> trace(org.apache.logging.log4j.Marker,java.lang.String,java.lang.Object) in
>>> org.apache.logging.log4j.Logger and method
>>> trace(java.lang.String,java.lang.Object,java.lang.Object) in
>>> org.apache.logging.log4j.Logger match
>>> [INFO] 2 errors
>>>
>>> with source code like:
>>>
>>> public void xyz(final String message, final Throwable t) {
>>> ...
>>> logger.error(null, message, t);
>>> ...
>>> logger.trace(null, message, t);
>>> ...
>>> }
>>>
>>> Next time, I'll remember to test with a "real" client.
>>>
>>> Gary
>>>
>>> --
>>> E-Mail: garydgregory@gmail.com | ggregory@apache.org
>>> Java Persistence with Hibernate, Second Edition
>>> <http://www.manning.com/bauer3/>
>>> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
>>> Spring Batch in Action <http://www.manning.com/templier/>
>>> Blog: http://garygregory.wordpress.com
>>> Home: http://garygregory.com/
>>> Tweet! http://twitter.com/GaryGregory
>>>
>>
>>
>>
>> --
>> E-Mail: garydgregory@gmail.com | ggregory@apache.org
>> Java Persistence with Hibernate, Second Edition
>> <http://www.manning.com/bauer3/>
>> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
>> Spring Batch in Action <http://www.manning.com/templier/>
>> Blog: http://garygregory.wordpress.com
>> Home: http://garygregory.com/
>> Tweet! http://twitter.com/GaryGregory
>>
>
>
>
> --
> E-Mail: garydgregory@gmail.com | ggregory@apache.org
> Java Persistence with Hibernate, Second Edition
> <http://www.manning.com/bauer3/>
> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> Spring Batch in Action <http://www.manning.com/templier/>
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory
>
--
Matt Sicker <bo...@gmail.com>
Re: 2.6 is not source compatible with 2.5
Posted by Gary Gregory <ga...@gmail.com>.
On Sun, May 29, 2016 at 9:57 AM, Gary Gregory <ga...@gmail.com>
wrote:
> And to make it more difficult to see what's changed, we do not have @since
> 2.6 Javadoc markers for the new methods in Logger that expand arguments up
> to 10 Objects :-(
>
I wonder which one of Clirr or Checkstyle could be extended to issue
warnings if @since tags are missing on public methods?
Gary
>
> Gary
>
> On Sun, May 29, 2016 at 9:53 AM, Gary Gregory <ga...@gmail.com>
> wrote:
>
>> We are going to need to update the release notes and/or site for 2.6 to
>> note that the 2.6 is not source compatible with previous releases. I tested
>> going from 2.5 to 2.6 at work and got:
>>
>> [ERROR] COMPILATION ERROR :
>> [INFO] -------------------------------------------------------------
>> [ERROR] /E:/vcs/svn/...XYZ..:[155,15] reference to error is ambiguous
>> both method
>> error(org.apache.logging.log4j.Marker,java.lang.String,java.lang.Object) in
>> org.apache.logging.log4j.Logger and method
>> error(java.lang.String,java.lang.Object,java.lang.Object) in
>> org.apache.logging.log4j.Logger match
>> [ERROR] /E:/vcs/svn/...XYZ...:[395,15] reference to trace is ambiguous
>> both method
>> trace(org.apache.logging.log4j.Marker,java.lang.String,java.lang.Object) in
>> org.apache.logging.log4j.Logger and method
>> trace(java.lang.String,java.lang.Object,java.lang.Object) in
>> org.apache.logging.log4j.Logger match
>> [INFO] 2 errors
>>
>> with source code like:
>>
>> public void xyz(final String message, final Throwable t) {
>> ...
>> logger.error(null, message, t);
>> ...
>> logger.trace(null, message, t);
>> ...
>> }
>>
>> Next time, I'll remember to test with a "real" client.
>>
>> Gary
>>
>> --
>> E-Mail: garydgregory@gmail.com | ggregory@apache.org
>> Java Persistence with Hibernate, Second Edition
>> <http://www.manning.com/bauer3/>
>> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
>> Spring Batch in Action <http://www.manning.com/templier/>
>> Blog: http://garygregory.wordpress.com
>> Home: http://garygregory.com/
>> Tweet! http://twitter.com/GaryGregory
>>
>
>
>
> --
> E-Mail: garydgregory@gmail.com | ggregory@apache.org
> Java Persistence with Hibernate, Second Edition
> <http://www.manning.com/bauer3/>
> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> Spring Batch in Action <http://www.manning.com/templier/>
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory
>
--
E-Mail: garydgregory@gmail.com | ggregory@apache.org
Java Persistence with Hibernate, Second Edition
<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory
Re: 2.6 is not source compatible with 2.5
Posted by Gary Gregory <ga...@gmail.com>.
And to make it more difficult to see what's changed, we do not have @since
2.6 Javadoc markers for the new methods in Logger that expand arguments up
to 10 Objects :-(
Gary
On Sun, May 29, 2016 at 9:53 AM, Gary Gregory <ga...@gmail.com>
wrote:
> We are going to need to update the release notes and/or site for 2.6 to
> note that the 2.6 is not source compatible with previous releases. I tested
> going from 2.5 to 2.6 at work and got:
>
> [ERROR] COMPILATION ERROR :
> [INFO] -------------------------------------------------------------
> [ERROR] /E:/vcs/svn/...XYZ..:[155,15] reference to error is ambiguous
> both method
> error(org.apache.logging.log4j.Marker,java.lang.String,java.lang.Object) in
> org.apache.logging.log4j.Logger and method
> error(java.lang.String,java.lang.Object,java.lang.Object) in
> org.apache.logging.log4j.Logger match
> [ERROR] /E:/vcs/svn/...XYZ...:[395,15] reference to trace is ambiguous
> both method
> trace(org.apache.logging.log4j.Marker,java.lang.String,java.lang.Object) in
> org.apache.logging.log4j.Logger and method
> trace(java.lang.String,java.lang.Object,java.lang.Object) in
> org.apache.logging.log4j.Logger match
> [INFO] 2 errors
>
> with source code like:
>
> public void xyz(final String message, final Throwable t) {
> ...
> logger.error(null, message, t);
> ...
> logger.trace(null, message, t);
> ...
> }
>
> Next time, I'll remember to test with a "real" client.
>
> Gary
>
> --
> E-Mail: garydgregory@gmail.com | ggregory@apache.org
> Java Persistence with Hibernate, Second Edition
> <http://www.manning.com/bauer3/>
> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> Spring Batch in Action <http://www.manning.com/templier/>
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory
>
--
E-Mail: garydgregory@gmail.com | ggregory@apache.org
Java Persistence with Hibernate, Second Edition
<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory
Re: 2.6 is not source compatible with 2.5
Posted by Gary Gregory <ga...@gmail.com>.
Great, TY.
Gary
On May 29, 2016 8:20 PM, "Ralph Goers" <ra...@dslextreme.com> wrote:
> I added the same information to the main site page.
>
> Ralph
>
> On May 29, 2016, at 2:08 PM, Gary Gregory <ga...@gmail.com> wrote:
>
> On Sun, May 29, 2016 at 1:41 PM, Ralph Goers <ra...@dslextreme.com>
> wrote:
>
>> Here is the text that I propose to add to the announcement. I would also
>> add something similar to the web site.
>>
>> Note that subsequent to the release a minor source incompatibility was
>> found due to the addition of new methods to
>> the Logger interface. If you have code that does:
>>
>> logger.error(null, “This is the log message”, throwable);
>>
>> or similar with any log level you will get a compiler error saying the
>> reference is ambiguous. To correct this either do:
>>
>> logger.error(“This is the log message”, throwable);
>>
>> or
>>
>> logger.error((Marker) null, “This is the log message”, throwable);
>>
>>
> I would add that the 2.6 code is _binary_ compatible with previous
> releases.
>
> Gary
>
>
>>
>> Ralph
>>
>> On May 29, 2016, at 11:14 AM, Matt Sicker <bo...@gmail.com> wrote:
>>
>> Yet another reason to hate null! ;)
>>
>> On 29 May 2016 at 13:13, Ralph Goers <ra...@dslextreme.com> wrote:
>>
>>> When you pass null as the first argument it doesn't know which is better
>>>
>>> Sent from my iPhone
>>>
>>> On May 29, 2016, at 11:07 AM, Matt Sicker <bo...@gmail.com> wrote:
>>>
>>> Wait, how are error(Marker, String, Object) and error(String, Object,
>>> Object) even confused by the compiler?
>>>
>>> On 29 May 2016 at 13:02, Ralph Goers <ra...@dslextreme.com> wrote:
>>>
>>>> Only if the compatibility issue can be fixed. I don't think it can. We
>>>> will just update the site and announcement.
>>>>
>>>> Sent from my iPhone
>>>>
>>>> On May 29, 2016, at 10:56 AM, Matt Sicker <bo...@gmail.com> wrote:
>>>>
>>>> So what do we do, follow up with 2.6.1 right away?
>>>>
>>>> On 29 May 2016 at 12:29, Ralph Goers <ra...@dslextreme.com>
>>>> wrote:
>>>>
>>>>> Can’t do that. That would require a re-release.
>>>>>
>>>>> Speaking of which, the archives directory only lists a couple of
>>>>> releases. I thought they were all supposed to be there.
>>>>>
>>>>> Ralph
>>>>>
>>>>> On May 29, 2016, at 10:19 AM, Gary Gregory <ga...@gmail.com>
>>>>> wrote:
>>>>>
>>>>> I think the RELEASE-NOTES.txt in the dist area needs to be updated as
>>>>> well.
>>>>>
>>>>> Gary
>>>>>
>>>>> On Sun, May 29, 2016 at 10:15 AM, Ralph Goers <
>>>>> ralph.goers@dslextreme.com> wrote:
>>>>>
>>>>>> I will add something to the announcement text when I send out the
>>>>>> emails. Those will go out in a few hours.
>>>>>>
>>>>>> Ralph
>>>>>>
>>>>>> On May 29, 2016, at 9:53 AM, Gary Gregory <ga...@gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>> We are going to need to update the release notes and/or site for 2.6
>>>>>> to note that the 2.6 is not source compatible with previous releases. I
>>>>>> tested going from 2.5 to 2.6 at work and got:
>>>>>>
>>>>>> [ERROR] COMPILATION ERROR :
>>>>>> [INFO] -------------------------------------------------------------
>>>>>> [ERROR] /E:/vcs/svn/...XYZ..:[155,15] reference to error is ambiguous
>>>>>> both method
>>>>>> error(org.apache.logging.log4j.Marker,java.lang.String,java.lang.Object) in
>>>>>> org.apache.logging.log4j.Logger and method
>>>>>> error(java.lang.String,java.lang.Object,java.lang.Object) in
>>>>>> org.apache.logging.log4j.Logger match
>>>>>> [ERROR] /E:/vcs/svn/...XYZ...:[395,15] reference to trace is ambiguous
>>>>>> both method
>>>>>> trace(org.apache.logging.log4j.Marker,java.lang.String,java.lang.Object) in
>>>>>> org.apache.logging.log4j.Logger and method
>>>>>> trace(java.lang.String,java.lang.Object,java.lang.Object) in
>>>>>> org.apache.logging.log4j.Logger match
>>>>>> [INFO] 2 errors
>>>>>>
>>>>>> with source code like:
>>>>>>
>>>>>> public void xyz(final String message, final Throwable t) {
>>>>>> ...
>>>>>> logger.error(null, message, t);
>>>>>> ...
>>>>>> logger.trace(null, message, t);
>>>>>> ...
>>>>>> }
>>>>>>
>>>>>> Next time, I'll remember to test with a "real" client.
>>>>>>
>>>>>> Gary
>>>>>>
>>>>>> --
>>>>>> E-Mail: garydgregory@gmail.com | ggregory@apache.org
>>>>>> Java Persistence with Hibernate, Second Edition
>>>>>> <http://www.manning.com/bauer3/>
>>>>>> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
>>>>>> Spring Batch in Action <http://www.manning.com/templier/>
>>>>>> Blog: http://garygregory.wordpress.com
>>>>>> Home: http://garygregory.com/
>>>>>> Tweet! http://twitter.com/GaryGregory
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> E-Mail: garydgregory@gmail.com | ggregory@apache.org
>>>>> Java Persistence with Hibernate, Second Edition
>>>>> <http://www.manning.com/bauer3/>
>>>>> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
>>>>> Spring Batch in Action <http://www.manning.com/templier/>
>>>>> Blog: http://garygregory.wordpress.com
>>>>> Home: http://garygregory.com/
>>>>> Tweet! http://twitter.com/GaryGregory
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Matt Sicker <bo...@gmail.com>
>>>>
>>>>
>>>
>>>
>>> --
>>> Matt Sicker <bo...@gmail.com>
>>>
>>>
>>
>>
>> --
>> Matt Sicker <bo...@gmail.com>
>>
>>
>> --------------------------------------------------------------------- To
>> unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org For
>> additional commands, e-mail: log4j-dev-help@logging.apache.org
>
>
>
>
> --
> E-Mail: garydgregory@gmail.com | ggregory@apache.org
> Java Persistence with Hibernate, Second Edition
> <http://www.manning.com/bauer3/>
> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> Spring Batch in Action <http://www.manning.com/templier/>
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory
>
>
>
Re: 2.6 is not source compatible with 2.5
Posted by Ralph Goers <ra...@dslextreme.com>.
I added the same information to the main site page.
Ralph
> On May 29, 2016, at 2:08 PM, Gary Gregory <ga...@gmail.com> wrote:
>
> On Sun, May 29, 2016 at 1:41 PM, Ralph Goers <ralph.goers@dslextreme.com <ma...@dslextreme.com>> wrote:
> Here is the text that I propose to add to the announcement. I would also add something similar to the web site.
>
> Note that subsequent to the release a minor source incompatibility was found due to the addition of new methods to
> the Logger interface. If you have code that does:
>
> logger.error(null, “This is the log message”, throwable);
>
> or similar with any log level you will get a compiler error saying the reference is ambiguous. To correct this either do:
>
> logger.error(“This is the log message”, throwable);
>
> or
>
> logger.error((Marker) null, “This is the log message”, throwable);
>
> I would add that the 2.6 code is _binary_ compatible with previous releases.
>
> Gary
>
>
> Ralph
>
>> On May 29, 2016, at 11:14 AM, Matt Sicker <boards@gmail.com <ma...@gmail.com>> wrote:
>>
>> Yet another reason to hate null! ;)
>>
>> On 29 May 2016 at 13:13, Ralph Goers <ralph.goers@dslextreme.com <ma...@dslextreme.com>> wrote:
>> When you pass null as the first argument it doesn't know which is better
>>
>> Sent from my iPhone
>>
>> On May 29, 2016, at 11:07 AM, Matt Sicker <boards@gmail.com <ma...@gmail.com>> wrote:
>>
>>> Wait, how are error(Marker, String, Object) and error(String, Object, Object) even confused by the compiler?
>>>
>>> On 29 May 2016 at 13:02, Ralph Goers <ralph.goers@dslextreme.com <ma...@dslextreme.com>> wrote:
>>> Only if the compatibility issue can be fixed. I don't think it can. We will just update the site and announcement.
>>>
>>> Sent from my iPhone
>>>
>>> On May 29, 2016, at 10:56 AM, Matt Sicker <boards@gmail.com <ma...@gmail.com>> wrote:
>>>
>>>> So what do we do, follow up with 2.6.1 right away?
>>>>
>>>> On 29 May 2016 at 12:29, Ralph Goers <ralph.goers@dslextreme.com <ma...@dslextreme.com>> wrote:
>>>> Can’t do that. That would require a re-release.
>>>>
>>>> Speaking of which, the archives directory only lists a couple of releases. I thought they were all supposed to be there.
>>>>
>>>> Ralph
>>>>
>>>>> On May 29, 2016, at 10:19 AM, Gary Gregory <garydgregory@gmail.com <ma...@gmail.com>> wrote:
>>>>>
>>>>> I think the RELEASE-NOTES.txt in the dist area needs to be updated as well.
>>>>>
>>>>> Gary
>>>>>
>>>>> On Sun, May 29, 2016 at 10:15 AM, Ralph Goers <ralph.goers@dslextreme.com <ma...@dslextreme.com>> wrote:
>>>>> I will add something to the announcement text when I send out the emails. Those will go out in a few hours.
>>>>>
>>>>> Ralph
>>>>>
>>>>>> On May 29, 2016, at 9:53 AM, Gary Gregory <garydgregory@gmail.com <ma...@gmail.com>> wrote:
>>>>>>
>>>>>> We are going to need to update the release notes and/or site for 2.6 to note that the 2.6 is not source compatible with previous releases. I tested going from 2.5 to 2.6 at work and got:
>>>>>>
>>>>>> [ERROR] COMPILATION ERROR :
>>>>>> [INFO] -------------------------------------------------------------
>>>>>> [ERROR] /E:/vcs/svn/...XYZ..:[155,15] reference to error is ambiguous
>>>>>> both method error(org.apache.logging.log4j.Marker,java.lang.String,java.lang.Object) in org.apache.logging.log4j.Logger and method error(java.lang.String,java.lang.Object,java.lang.Object) in org.apache.logging.log4j.Logger match
>>>>>> [ERROR] /E:/vcs/svn/...XYZ...:[395,15] reference to trace is ambiguous
>>>>>> both method trace(org.apache.logging.log4j.Marker,java.lang.String,java.lang.Object) in org.apache.logging.log4j.Logger and method trace(java.lang.String,java.lang.Object,java.lang.Object) in org.apache.logging.log4j.Logger match
>>>>>> [INFO] 2 errors
>>>>>>
>>>>>> with source code like:
>>>>>>
>>>>>> public void xyz(final String message, final Throwable t) {
>>>>>> ...
>>>>>> logger.error(null, message, t);
>>>>>> ...
>>>>>> logger.trace(null, message, t);
>>>>>> ...
>>>>>> }
>>>>>>
>>>>>> Next time, I'll remember to test with a "real" client.
>>>>>>
>>>>>> Gary
>>>>>>
>>>>>> --
>>>>>> E-Mail: garydgregory@gmail.com <ma...@gmail.com> | ggregory@apache.org <ma...@apache.org>
>>>>>> Java Persistence with Hibernate, Second Edition <http://www.manning.com/bauer3/>
>>>>>> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
>>>>>> Spring Batch in Action <http://www.manning.com/templier/>
>>>>>> Blog: http://garygregory.wordpress.com <http://garygregory.wordpress.com/>
>>>>>> Home: http://garygregory.com/ <http://garygregory.com/>
>>>>>> Tweet! http://twitter.com/GaryGregory <http://twitter.com/GaryGregory>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> E-Mail: garydgregory@gmail.com <ma...@gmail.com> | ggregory@apache.org <ma...@apache.org>
>>>>> Java Persistence with Hibernate, Second Edition <http://www.manning.com/bauer3/>
>>>>> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
>>>>> Spring Batch in Action <http://www.manning.com/templier/>
>>>>> Blog: http://garygregory.wordpress.com <http://garygregory.wordpress.com/>
>>>>> Home: http://garygregory.com/ <http://garygregory.com/>
>>>>> Tweet! http://twitter.com/GaryGregory <http://twitter.com/GaryGregory>
>>>>
>>>>
>>>>
>>>> --
>>>> Matt Sicker <boards@gmail.com <ma...@gmail.com>>
>>>
>>>
>>>
>>> --
>>> Matt Sicker <boards@gmail.com <ma...@gmail.com>>
>>
>>
>>
>> --
>> Matt Sicker <boards@gmail.com <ma...@gmail.com>>
>
> --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org <ma...@logging.apache.org> For additional commands, e-mail: log4j-dev-help@logging.apache.org <ma...@logging.apache.org>
>
>
> --
> E-Mail: garydgregory@gmail.com <ma...@gmail.com> | ggregory@apache.org <ma...@apache.org>
> Java Persistence with Hibernate, Second Edition <http://www.manning.com/bauer3/>
> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> Spring Batch in Action <http://www.manning.com/templier/>
> Blog: http://garygregory.wordpress.com <http://garygregory.wordpress.com/>
> Home: http://garygregory.com/ <http://garygregory.com/>
> Tweet! http://twitter.com/GaryGregory <http://twitter.com/GaryGregory>
Re: 2.6 is not source compatible with 2.5
Posted by Gary Gregory <ga...@gmail.com>.
On Sun, May 29, 2016 at 1:41 PM, Ralph Goers <ra...@dslextreme.com>
wrote:
> Here is the text that I propose to add to the announcement. I would also
> add something similar to the web site.
>
> Note that subsequent to the release a minor source incompatibility was
> found due to the addition of new methods to
> the Logger interface. If you have code that does:
>
> logger.error(null, “This is the log message”, throwable);
>
> or similar with any log level you will get a compiler error saying the
> reference is ambiguous. To correct this either do:
>
> logger.error(“This is the log message”, throwable);
>
> or
>
> logger.error((Marker) null, “This is the log message”, throwable);
>
>
I would add that the 2.6 code is _binary_ compatible with previous releases.
Gary
>
> Ralph
>
> On May 29, 2016, at 11:14 AM, Matt Sicker <bo...@gmail.com> wrote:
>
> Yet another reason to hate null! ;)
>
> On 29 May 2016 at 13:13, Ralph Goers <ra...@dslextreme.com> wrote:
>
>> When you pass null as the first argument it doesn't know which is better
>>
>> Sent from my iPhone
>>
>> On May 29, 2016, at 11:07 AM, Matt Sicker <bo...@gmail.com> wrote:
>>
>> Wait, how are error(Marker, String, Object) and error(String, Object,
>> Object) even confused by the compiler?
>>
>> On 29 May 2016 at 13:02, Ralph Goers <ra...@dslextreme.com> wrote:
>>
>>> Only if the compatibility issue can be fixed. I don't think it can. We
>>> will just update the site and announcement.
>>>
>>> Sent from my iPhone
>>>
>>> On May 29, 2016, at 10:56 AM, Matt Sicker <bo...@gmail.com> wrote:
>>>
>>> So what do we do, follow up with 2.6.1 right away?
>>>
>>> On 29 May 2016 at 12:29, Ralph Goers <ra...@dslextreme.com> wrote:
>>>
>>>> Can’t do that. That would require a re-release.
>>>>
>>>> Speaking of which, the archives directory only lists a couple of
>>>> releases. I thought they were all supposed to be there.
>>>>
>>>> Ralph
>>>>
>>>> On May 29, 2016, at 10:19 AM, Gary Gregory <ga...@gmail.com>
>>>> wrote:
>>>>
>>>> I think the RELEASE-NOTES.txt in the dist area needs to be updated as
>>>> well.
>>>>
>>>> Gary
>>>>
>>>> On Sun, May 29, 2016 at 10:15 AM, Ralph Goers <
>>>> ralph.goers@dslextreme.com> wrote:
>>>>
>>>>> I will add something to the announcement text when I send out the
>>>>> emails. Those will go out in a few hours.
>>>>>
>>>>> Ralph
>>>>>
>>>>> On May 29, 2016, at 9:53 AM, Gary Gregory <ga...@gmail.com>
>>>>> wrote:
>>>>>
>>>>> We are going to need to update the release notes and/or site for 2.6
>>>>> to note that the 2.6 is not source compatible with previous releases. I
>>>>> tested going from 2.5 to 2.6 at work and got:
>>>>>
>>>>> [ERROR] COMPILATION ERROR :
>>>>> [INFO] -------------------------------------------------------------
>>>>> [ERROR] /E:/vcs/svn/...XYZ..:[155,15] reference to error is ambiguous
>>>>> both method
>>>>> error(org.apache.logging.log4j.Marker,java.lang.String,java.lang.Object) in
>>>>> org.apache.logging.log4j.Logger and method
>>>>> error(java.lang.String,java.lang.Object,java.lang.Object) in
>>>>> org.apache.logging.log4j.Logger match
>>>>> [ERROR] /E:/vcs/svn/...XYZ...:[395,15] reference to trace is ambiguous
>>>>> both method
>>>>> trace(org.apache.logging.log4j.Marker,java.lang.String,java.lang.Object) in
>>>>> org.apache.logging.log4j.Logger and method
>>>>> trace(java.lang.String,java.lang.Object,java.lang.Object) in
>>>>> org.apache.logging.log4j.Logger match
>>>>> [INFO] 2 errors
>>>>>
>>>>> with source code like:
>>>>>
>>>>> public void xyz(final String message, final Throwable t) {
>>>>> ...
>>>>> logger.error(null, message, t);
>>>>> ...
>>>>> logger.trace(null, message, t);
>>>>> ...
>>>>> }
>>>>>
>>>>> Next time, I'll remember to test with a "real" client.
>>>>>
>>>>> Gary
>>>>>
>>>>> --
>>>>> E-Mail: garydgregory@gmail.com | ggregory@apache.org
>>>>> Java Persistence with Hibernate, Second Edition
>>>>> <http://www.manning.com/bauer3/>
>>>>> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
>>>>> Spring Batch in Action <http://www.manning.com/templier/>
>>>>> Blog: http://garygregory.wordpress.com
>>>>> Home: http://garygregory.com/
>>>>> Tweet! http://twitter.com/GaryGregory
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> E-Mail: garydgregory@gmail.com | ggregory@apache.org
>>>> Java Persistence with Hibernate, Second Edition
>>>> <http://www.manning.com/bauer3/>
>>>> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
>>>> Spring Batch in Action <http://www.manning.com/templier/>
>>>> Blog: http://garygregory.wordpress.com
>>>> Home: http://garygregory.com/
>>>> Tweet! http://twitter.com/GaryGregory
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Matt Sicker <bo...@gmail.com>
>>>
>>>
>>
>>
>> --
>> Matt Sicker <bo...@gmail.com>
>>
>>
>
>
> --
> Matt Sicker <bo...@gmail.com>
>
>
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org For
> additional commands, e-mail: log4j-dev-help@logging.apache.org
--
E-Mail: garydgregory@gmail.com | ggregory@apache.org
Java Persistence with Hibernate, Second Edition
<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory
Re: 2.6 is not source compatible with 2.5
Posted by Matt Sicker <bo...@gmail.com>.
Yet another reason to hate null! ;)
On 29 May 2016 at 13:13, Ralph Goers <ra...@dslextreme.com> wrote:
> When you pass null as the first argument it doesn't know which is better
>
> Sent from my iPhone
>
> On May 29, 2016, at 11:07 AM, Matt Sicker <bo...@gmail.com> wrote:
>
> Wait, how are error(Marker, String, Object) and error(String, Object,
> Object) even confused by the compiler?
>
> On 29 May 2016 at 13:02, Ralph Goers <ra...@dslextreme.com> wrote:
>
>> Only if the compatibility issue can be fixed. I don't think it can. We
>> will just update the site and announcement.
>>
>> Sent from my iPhone
>>
>> On May 29, 2016, at 10:56 AM, Matt Sicker <bo...@gmail.com> wrote:
>>
>> So what do we do, follow up with 2.6.1 right away?
>>
>> On 29 May 2016 at 12:29, Ralph Goers <ra...@dslextreme.com> wrote:
>>
>>> Can’t do that. That would require a re-release.
>>>
>>> Speaking of which, the archives directory only lists a couple of
>>> releases. I thought they were all supposed to be there.
>>>
>>> Ralph
>>>
>>> On May 29, 2016, at 10:19 AM, Gary Gregory <ga...@gmail.com>
>>> wrote:
>>>
>>> I think the RELEASE-NOTES.txt in the dist area needs to be updated as
>>> well.
>>>
>>> Gary
>>>
>>> On Sun, May 29, 2016 at 10:15 AM, Ralph Goers <
>>> ralph.goers@dslextreme.com> wrote:
>>>
>>>> I will add something to the announcement text when I send out the
>>>> emails. Those will go out in a few hours.
>>>>
>>>> Ralph
>>>>
>>>> On May 29, 2016, at 9:53 AM, Gary Gregory <ga...@gmail.com>
>>>> wrote:
>>>>
>>>> We are going to need to update the release notes and/or site for 2.6 to
>>>> note that the 2.6 is not source compatible with previous releases. I tested
>>>> going from 2.5 to 2.6 at work and got:
>>>>
>>>> [ERROR] COMPILATION ERROR :
>>>> [INFO] -------------------------------------------------------------
>>>> [ERROR] /E:/vcs/svn/...XYZ..:[155,15] reference to error is ambiguous
>>>> both method
>>>> error(org.apache.logging.log4j.Marker,java.lang.String,java.lang.Object) in
>>>> org.apache.logging.log4j.Logger and method
>>>> error(java.lang.String,java.lang.Object,java.lang.Object) in
>>>> org.apache.logging.log4j.Logger match
>>>> [ERROR] /E:/vcs/svn/...XYZ...:[395,15] reference to trace is ambiguous
>>>> both method
>>>> trace(org.apache.logging.log4j.Marker,java.lang.String,java.lang.Object) in
>>>> org.apache.logging.log4j.Logger and method
>>>> trace(java.lang.String,java.lang.Object,java.lang.Object) in
>>>> org.apache.logging.log4j.Logger match
>>>> [INFO] 2 errors
>>>>
>>>> with source code like:
>>>>
>>>> public void xyz(final String message, final Throwable t) {
>>>> ...
>>>> logger.error(null, message, t);
>>>> ...
>>>> logger.trace(null, message, t);
>>>> ...
>>>> }
>>>>
>>>> Next time, I'll remember to test with a "real" client.
>>>>
>>>> Gary
>>>>
>>>> --
>>>> E-Mail: garydgregory@gmail.com | ggregory@apache.org
>>>> Java Persistence with Hibernate, Second Edition
>>>> <http://www.manning.com/bauer3/>
>>>> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
>>>> Spring Batch in Action <http://www.manning.com/templier/>
>>>> Blog: http://garygregory.wordpress.com
>>>> Home: http://garygregory.com/
>>>> Tweet! http://twitter.com/GaryGregory
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> E-Mail: garydgregory@gmail.com | ggregory@apache.org
>>> Java Persistence with Hibernate, Second Edition
>>> <http://www.manning.com/bauer3/>
>>> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
>>> Spring Batch in Action <http://www.manning.com/templier/>
>>> Blog: http://garygregory.wordpress.com
>>> Home: http://garygregory.com/
>>> Tweet! http://twitter.com/GaryGregory
>>>
>>>
>>>
>>
>>
>> --
>> Matt Sicker <bo...@gmail.com>
>>
>>
>
>
> --
> Matt Sicker <bo...@gmail.com>
>
>
--
Matt Sicker <bo...@gmail.com>
Re: 2.6 is not source compatible with 2.5
Posted by Ralph Goers <ra...@dslextreme.com>.
When you pass null as the first argument it doesn't know which is better
Sent from my iPhone
> On May 29, 2016, at 11:07 AM, Matt Sicker <bo...@gmail.com> wrote:
>
> Wait, how are error(Marker, String, Object) and error(String, Object, Object) even confused by the compiler?
>
>> On 29 May 2016 at 13:02, Ralph Goers <ra...@dslextreme.com> wrote:
>> Only if the compatibility issue can be fixed. I don't think it can. We will just update the site and announcement.
>>
>> Sent from my iPhone
>>
>>> On May 29, 2016, at 10:56 AM, Matt Sicker <bo...@gmail.com> wrote:
>>>
>>> So what do we do, follow up with 2.6.1 right away?
>>>
>>>> On 29 May 2016 at 12:29, Ralph Goers <ra...@dslextreme.com> wrote:
>>>> Can’t do that. That would require a re-release.
>>>>
>>>> Speaking of which, the archives directory only lists a couple of releases. I thought they were all supposed to be there.
>>>>
>>>> Ralph
>>>>
>>>>> On May 29, 2016, at 10:19 AM, Gary Gregory <ga...@gmail.com> wrote:
>>>>>
>>>>> I think the RELEASE-NOTES.txt in the dist area needs to be updated as well.
>>>>>
>>>>> Gary
>>>>>
>>>>>> On Sun, May 29, 2016 at 10:15 AM, Ralph Goers <ra...@dslextreme.com> wrote:
>>>>>> I will add something to the announcement text when I send out the emails. Those will go out in a few hours.
>>>>>>
>>>>>> Ralph
>>>>>>
>>>>>>> On May 29, 2016, at 9:53 AM, Gary Gregory <ga...@gmail.com> wrote:
>>>>>>>
>>>>>>> We are going to need to update the release notes and/or site for 2.6 to note that the 2.6 is not source compatible with previous releases. I tested going from 2.5 to 2.6 at work and got:
>>>>>>>
>>>>>>> [ERROR] COMPILATION ERROR :
>>>>>>> [INFO] -------------------------------------------------------------
>>>>>>> [ERROR] /E:/vcs/svn/...XYZ..:[155,15] reference to error is ambiguous
>>>>>>> both method error(org.apache.logging.log4j.Marker,java.lang.String,java.lang.Object) in org.apache.logging.log4j.Logger and method error(java.lang.String,java.lang.Object,java.lang.Object) in org.apache.logging.log4j.Logger match
>>>>>>> [ERROR] /E:/vcs/svn/...XYZ...:[395,15] reference to trace is ambiguous
>>>>>>> both method trace(org.apache.logging.log4j.Marker,java.lang.String,java.lang.Object) in org.apache.logging.log4j.Logger and method trace(java.lang.String,java.lang.Object,java.lang.Object) in org.apache.logging.log4j.Logger match
>>>>>>> [INFO] 2 errors
>>>>>>>
>>>>>>> with source code like:
>>>>>>>
>>>>>>> public void xyz(final String message, final Throwable t) {
>>>>>>> ...
>>>>>>> logger.error(null, message, t);
>>>>>>> ...
>>>>>>> logger.trace(null, message, t);
>>>>>>> ...
>>>>>>> }
>>>>>>>
>>>>>>> Next time, I'll remember to test with a "real" client.
>>>>>>>
>>>>>>> Gary
>>>>>>>
>>>>>>> --
>>>>>>> E-Mail: garydgregory@gmail.com | ggregory@apache.org
>>>>>>> Java Persistence with Hibernate, Second Edition
>>>>>>> JUnit in Action, Second Edition
>>>>>>> Spring Batch in Action
>>>>>>> Blog: http://garygregory.wordpress.com
>>>>>>> Home: http://garygregory.com/
>>>>>>> Tweet! http://twitter.com/GaryGregory
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> E-Mail: garydgregory@gmail.com | ggregory@apache.org
>>>>> Java Persistence with Hibernate, Second Edition
>>>>> JUnit in Action, Second Edition
>>>>> Spring Batch in Action
>>>>> Blog: http://garygregory.wordpress.com
>>>>> Home: http://garygregory.com/
>>>>> Tweet! http://twitter.com/GaryGregory
>>>
>>>
>>>
>>> --
>>> Matt Sicker <bo...@gmail.com>
>
>
>
> --
> Matt Sicker <bo...@gmail.com>
Re: 2.6 is not source compatible with 2.5
Posted by Matt Sicker <bo...@gmail.com>.
Wait, how are error(Marker, String, Object) and error(String, Object,
Object) even confused by the compiler?
On 29 May 2016 at 13:02, Ralph Goers <ra...@dslextreme.com> wrote:
> Only if the compatibility issue can be fixed. I don't think it can. We
> will just update the site and announcement.
>
> Sent from my iPhone
>
> On May 29, 2016, at 10:56 AM, Matt Sicker <bo...@gmail.com> wrote:
>
> So what do we do, follow up with 2.6.1 right away?
>
> On 29 May 2016 at 12:29, Ralph Goers <ra...@dslextreme.com> wrote:
>
>> Can’t do that. That would require a re-release.
>>
>> Speaking of which, the archives directory only lists a couple of
>> releases. I thought they were all supposed to be there.
>>
>> Ralph
>>
>> On May 29, 2016, at 10:19 AM, Gary Gregory <ga...@gmail.com>
>> wrote:
>>
>> I think the RELEASE-NOTES.txt in the dist area needs to be updated as
>> well.
>>
>> Gary
>>
>> On Sun, May 29, 2016 at 10:15 AM, Ralph Goers <ralph.goers@dslextreme.com
>> > wrote:
>>
>>> I will add something to the announcement text when I send out the
>>> emails. Those will go out in a few hours.
>>>
>>> Ralph
>>>
>>> On May 29, 2016, at 9:53 AM, Gary Gregory <ga...@gmail.com>
>>> wrote:
>>>
>>> We are going to need to update the release notes and/or site for 2.6 to
>>> note that the 2.6 is not source compatible with previous releases. I tested
>>> going from 2.5 to 2.6 at work and got:
>>>
>>> [ERROR] COMPILATION ERROR :
>>> [INFO] -------------------------------------------------------------
>>> [ERROR] /E:/vcs/svn/...XYZ..:[155,15] reference to error is ambiguous
>>> both method
>>> error(org.apache.logging.log4j.Marker,java.lang.String,java.lang.Object) in
>>> org.apache.logging.log4j.Logger and method
>>> error(java.lang.String,java.lang.Object,java.lang.Object) in
>>> org.apache.logging.log4j.Logger match
>>> [ERROR] /E:/vcs/svn/...XYZ...:[395,15] reference to trace is ambiguous
>>> both method
>>> trace(org.apache.logging.log4j.Marker,java.lang.String,java.lang.Object) in
>>> org.apache.logging.log4j.Logger and method
>>> trace(java.lang.String,java.lang.Object,java.lang.Object) in
>>> org.apache.logging.log4j.Logger match
>>> [INFO] 2 errors
>>>
>>> with source code like:
>>>
>>> public void xyz(final String message, final Throwable t) {
>>> ...
>>> logger.error(null, message, t);
>>> ...
>>> logger.trace(null, message, t);
>>> ...
>>> }
>>>
>>> Next time, I'll remember to test with a "real" client.
>>>
>>> Gary
>>>
>>> --
>>> E-Mail: garydgregory@gmail.com | ggregory@apache.org
>>> Java Persistence with Hibernate, Second Edition
>>> <http://www.manning.com/bauer3/>
>>> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
>>> Spring Batch in Action <http://www.manning.com/templier/>
>>> Blog: http://garygregory.wordpress.com
>>> Home: http://garygregory.com/
>>> Tweet! http://twitter.com/GaryGregory
>>>
>>>
>>>
>>
>>
>> --
>> E-Mail: garydgregory@gmail.com | ggregory@apache.org
>> Java Persistence with Hibernate, Second Edition
>> <http://www.manning.com/bauer3/>
>> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
>> Spring Batch in Action <http://www.manning.com/templier/>
>> Blog: http://garygregory.wordpress.com
>> Home: http://garygregory.com/
>> Tweet! http://twitter.com/GaryGregory
>>
>>
>>
>
>
> --
> Matt Sicker <bo...@gmail.com>
>
>
--
Matt Sicker <bo...@gmail.com>
Re: 2.6 is not source compatible with 2.5
Posted by Ralph Goers <ra...@dslextreme.com>.
Only if the compatibility issue can be fixed. I don't think it can. We will just update the site and announcement.
Sent from my iPhone
> On May 29, 2016, at 10:56 AM, Matt Sicker <bo...@gmail.com> wrote:
>
> So what do we do, follow up with 2.6.1 right away?
>
>> On 29 May 2016 at 12:29, Ralph Goers <ra...@dslextreme.com> wrote:
>> Can’t do that. That would require a re-release.
>>
>> Speaking of which, the archives directory only lists a couple of releases. I thought they were all supposed to be there.
>>
>> Ralph
>>
>>> On May 29, 2016, at 10:19 AM, Gary Gregory <ga...@gmail.com> wrote:
>>>
>>> I think the RELEASE-NOTES.txt in the dist area needs to be updated as well.
>>>
>>> Gary
>>>
>>>> On Sun, May 29, 2016 at 10:15 AM, Ralph Goers <ra...@dslextreme.com> wrote:
>>>> I will add something to the announcement text when I send out the emails. Those will go out in a few hours.
>>>>
>>>> Ralph
>>>>
>>>>> On May 29, 2016, at 9:53 AM, Gary Gregory <ga...@gmail.com> wrote:
>>>>>
>>>>> We are going to need to update the release notes and/or site for 2.6 to note that the 2.6 is not source compatible with previous releases. I tested going from 2.5 to 2.6 at work and got:
>>>>>
>>>>> [ERROR] COMPILATION ERROR :
>>>>> [INFO] -------------------------------------------------------------
>>>>> [ERROR] /E:/vcs/svn/...XYZ..:[155,15] reference to error is ambiguous
>>>>> both method error(org.apache.logging.log4j.Marker,java.lang.String,java.lang.Object) in org.apache.logging.log4j.Logger and method error(java.lang.String,java.lang.Object,java.lang.Object) in org.apache.logging.log4j.Logger match
>>>>> [ERROR] /E:/vcs/svn/...XYZ...:[395,15] reference to trace is ambiguous
>>>>> both method trace(org.apache.logging.log4j.Marker,java.lang.String,java.lang.Object) in org.apache.logging.log4j.Logger and method trace(java.lang.String,java.lang.Object,java.lang.Object) in org.apache.logging.log4j.Logger match
>>>>> [INFO] 2 errors
>>>>>
>>>>> with source code like:
>>>>>
>>>>> public void xyz(final String message, final Throwable t) {
>>>>> ...
>>>>> logger.error(null, message, t);
>>>>> ...
>>>>> logger.trace(null, message, t);
>>>>> ...
>>>>> }
>>>>>
>>>>> Next time, I'll remember to test with a "real" client.
>>>>>
>>>>> Gary
>>>>>
>>>>> --
>>>>> E-Mail: garydgregory@gmail.com | ggregory@apache.org
>>>>> Java Persistence with Hibernate, Second Edition
>>>>> JUnit in Action, Second Edition
>>>>> Spring Batch in Action
>>>>> Blog: http://garygregory.wordpress.com
>>>>> Home: http://garygregory.com/
>>>>> Tweet! http://twitter.com/GaryGregory
>>>
>>>
>>>
>>> --
>>> E-Mail: garydgregory@gmail.com | ggregory@apache.org
>>> Java Persistence with Hibernate, Second Edition
>>> JUnit in Action, Second Edition
>>> Spring Batch in Action
>>> Blog: http://garygregory.wordpress.com
>>> Home: http://garygregory.com/
>>> Tweet! http://twitter.com/GaryGregory
>
>
>
> --
> Matt Sicker <bo...@gmail.com>
Re: 2.6 is not source compatible with 2.5
Posted by Matt Sicker <bo...@gmail.com>.
So what do we do, follow up with 2.6.1 right away?
On 29 May 2016 at 12:29, Ralph Goers <ra...@dslextreme.com> wrote:
> Can’t do that. That would require a re-release.
>
> Speaking of which, the archives directory only lists a couple of releases.
> I thought they were all supposed to be there.
>
> Ralph
>
> On May 29, 2016, at 10:19 AM, Gary Gregory <ga...@gmail.com> wrote:
>
> I think the RELEASE-NOTES.txt in the dist area needs to be updated as well.
>
> Gary
>
> On Sun, May 29, 2016 at 10:15 AM, Ralph Goers <ra...@dslextreme.com>
> wrote:
>
>> I will add something to the announcement text when I send out the
>> emails. Those will go out in a few hours.
>>
>> Ralph
>>
>> On May 29, 2016, at 9:53 AM, Gary Gregory <ga...@gmail.com> wrote:
>>
>> We are going to need to update the release notes and/or site for 2.6 to
>> note that the 2.6 is not source compatible with previous releases. I tested
>> going from 2.5 to 2.6 at work and got:
>>
>> [ERROR] COMPILATION ERROR :
>> [INFO] -------------------------------------------------------------
>> [ERROR] /E:/vcs/svn/...XYZ..:[155,15] reference to error is ambiguous
>> both method
>> error(org.apache.logging.log4j.Marker,java.lang.String,java.lang.Object) in
>> org.apache.logging.log4j.Logger and method
>> error(java.lang.String,java.lang.Object,java.lang.Object) in
>> org.apache.logging.log4j.Logger match
>> [ERROR] /E:/vcs/svn/...XYZ...:[395,15] reference to trace is ambiguous
>> both method
>> trace(org.apache.logging.log4j.Marker,java.lang.String,java.lang.Object) in
>> org.apache.logging.log4j.Logger and method
>> trace(java.lang.String,java.lang.Object,java.lang.Object) in
>> org.apache.logging.log4j.Logger match
>> [INFO] 2 errors
>>
>> with source code like:
>>
>> public void xyz(final String message, final Throwable t) {
>> ...
>> logger.error(null, message, t);
>> ...
>> logger.trace(null, message, t);
>> ...
>> }
>>
>> Next time, I'll remember to test with a "real" client.
>>
>> Gary
>>
>> --
>> E-Mail: garydgregory@gmail.com | ggregory@apache.org
>> Java Persistence with Hibernate, Second Edition
>> <http://www.manning.com/bauer3/>
>> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
>> Spring Batch in Action <http://www.manning.com/templier/>
>> Blog: http://garygregory.wordpress.com
>> Home: http://garygregory.com/
>> Tweet! http://twitter.com/GaryGregory
>>
>>
>>
>
>
> --
> E-Mail: garydgregory@gmail.com | ggregory@apache.org
> Java Persistence with Hibernate, Second Edition
> <http://www.manning.com/bauer3/>
> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> Spring Batch in Action <http://www.manning.com/templier/>
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory
>
>
>
--
Matt Sicker <bo...@gmail.com>
Re: 2.6 is not source compatible with 2.5
Posted by Ralph Goers <ra...@dslextreme.com>.
Can’t do that. That would require a re-release.
Speaking of which, the archives directory only lists a couple of releases. I thought they were all supposed to be there.
Ralph
> On May 29, 2016, at 10:19 AM, Gary Gregory <ga...@gmail.com> wrote:
>
> I think the RELEASE-NOTES.txt in the dist area needs to be updated as well.
>
> Gary
>
> On Sun, May 29, 2016 at 10:15 AM, Ralph Goers <ralph.goers@dslextreme.com <ma...@dslextreme.com>> wrote:
> I will add something to the announcement text when I send out the emails. Those will go out in a few hours.
>
> Ralph
>
>> On May 29, 2016, at 9:53 AM, Gary Gregory <garydgregory@gmail.com <ma...@gmail.com>> wrote:
>>
>> We are going to need to update the release notes and/or site for 2.6 to note that the 2.6 is not source compatible with previous releases. I tested going from 2.5 to 2.6 at work and got:
>>
>> [ERROR] COMPILATION ERROR :
>> [INFO] -------------------------------------------------------------
>> [ERROR] /E:/vcs/svn/...XYZ..:[155,15] reference to error is ambiguous
>> both method error(org.apache.logging.log4j.Marker,java.lang.String,java.lang.Object) in org.apache.logging.log4j.Logger and method error(java.lang.String,java.lang.Object,java.lang.Object) in org.apache.logging.log4j.Logger match
>> [ERROR] /E:/vcs/svn/...XYZ...:[395,15] reference to trace is ambiguous
>> both method trace(org.apache.logging.log4j.Marker,java.lang.String,java.lang.Object) in org.apache.logging.log4j.Logger and method trace(java.lang.String,java.lang.Object,java.lang.Object) in org.apache.logging.log4j.Logger match
>> [INFO] 2 errors
>>
>> with source code like:
>>
>> public void xyz(final String message, final Throwable t) {
>> ...
>> logger.error(null, message, t);
>> ...
>> logger.trace(null, message, t);
>> ...
>> }
>>
>> Next time, I'll remember to test with a "real" client.
>>
>> Gary
>>
>> --
>> E-Mail: garydgregory@gmail.com <ma...@gmail.com> | ggregory@apache.org <ma...@apache.org>
>> Java Persistence with Hibernate, Second Edition <http://www.manning.com/bauer3/>
>> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
>> Spring Batch in Action <http://www.manning.com/templier/>
>> Blog: http://garygregory.wordpress.com <http://garygregory.wordpress.com/>
>> Home: http://garygregory.com/ <http://garygregory.com/>
>> Tweet! http://twitter.com/GaryGregory <http://twitter.com/GaryGregory>
>
>
>
> --
> E-Mail: garydgregory@gmail.com <ma...@gmail.com> | ggregory@apache.org <ma...@apache.org>
> Java Persistence with Hibernate, Second Edition <http://www.manning.com/bauer3/>
> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> Spring Batch in Action <http://www.manning.com/templier/>
> Blog: http://garygregory.wordpress.com <http://garygregory.wordpress.com/>
> Home: http://garygregory.com/ <http://garygregory.com/>
> Tweet! http://twitter.com/GaryGregory <http://twitter.com/GaryGregory>
Re: 2.6 is not source compatible with 2.5
Posted by Gary Gregory <ga...@gmail.com>.
I think the RELEASE-NOTES.txt in the dist area needs to be updated as well.
Gary
On Sun, May 29, 2016 at 10:15 AM, Ralph Goers <ra...@dslextreme.com>
wrote:
> I will add something to the announcement text when I send out the emails.
> Those will go out in a few hours.
>
> Ralph
>
> On May 29, 2016, at 9:53 AM, Gary Gregory <ga...@gmail.com> wrote:
>
> We are going to need to update the release notes and/or site for 2.6 to
> note that the 2.6 is not source compatible with previous releases. I tested
> going from 2.5 to 2.6 at work and got:
>
> [ERROR] COMPILATION ERROR :
> [INFO] -------------------------------------------------------------
> [ERROR] /E:/vcs/svn/...XYZ..:[155,15] reference to error is ambiguous
> both method
> error(org.apache.logging.log4j.Marker,java.lang.String,java.lang.Object) in
> org.apache.logging.log4j.Logger and method
> error(java.lang.String,java.lang.Object,java.lang.Object) in
> org.apache.logging.log4j.Logger match
> [ERROR] /E:/vcs/svn/...XYZ...:[395,15] reference to trace is ambiguous
> both method
> trace(org.apache.logging.log4j.Marker,java.lang.String,java.lang.Object) in
> org.apache.logging.log4j.Logger and method
> trace(java.lang.String,java.lang.Object,java.lang.Object) in
> org.apache.logging.log4j.Logger match
> [INFO] 2 errors
>
> with source code like:
>
> public void xyz(final String message, final Throwable t) {
> ...
> logger.error(null, message, t);
> ...
> logger.trace(null, message, t);
> ...
> }
>
> Next time, I'll remember to test with a "real" client.
>
> Gary
>
> --
> E-Mail: garydgregory@gmail.com | ggregory@apache.org
> Java Persistence with Hibernate, Second Edition
> <http://www.manning.com/bauer3/>
> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> Spring Batch in Action <http://www.manning.com/templier/>
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory
>
>
>
--
E-Mail: garydgregory@gmail.com | ggregory@apache.org
Java Persistence with Hibernate, Second Edition
<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory
Re: 2.6 is not source compatible with 2.5
Posted by Ralph Goers <ra...@dslextreme.com>.
I will add something to the announcement text when I send out the emails. Those will go out in a few hours.
Ralph
> On May 29, 2016, at 9:53 AM, Gary Gregory <ga...@gmail.com> wrote:
>
> We are going to need to update the release notes and/or site for 2.6 to note that the 2.6 is not source compatible with previous releases. I tested going from 2.5 to 2.6 at work and got:
>
> [ERROR] COMPILATION ERROR :
> [INFO] -------------------------------------------------------------
> [ERROR] /E:/vcs/svn/...XYZ..:[155,15] reference to error is ambiguous
> both method error(org.apache.logging.log4j.Marker,java.lang.String,java.lang.Object) in org.apache.logging.log4j.Logger and method error(java.lang.String,java.lang.Object,java.lang.Object) in org.apache.logging.log4j.Logger match
> [ERROR] /E:/vcs/svn/...XYZ...:[395,15] reference to trace is ambiguous
> both method trace(org.apache.logging.log4j.Marker,java.lang.String,java.lang.Object) in org.apache.logging.log4j.Logger and method trace(java.lang.String,java.lang.Object,java.lang.Object) in org.apache.logging.log4j.Logger match
> [INFO] 2 errors
>
> with source code like:
>
> public void xyz(final String message, final Throwable t) {
> ...
> logger.error(null, message, t);
> ...
> logger.trace(null, message, t);
> ...
> }
>
> Next time, I'll remember to test with a "real" client.
>
> Gary
>
> --
> E-Mail: garydgregory@gmail.com <ma...@gmail.com> | ggregory@apache.org <ma...@apache.org>
> Java Persistence with Hibernate, Second Edition <http://www.manning.com/bauer3/>
> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> Spring Batch in Action <http://www.manning.com/templier/>
> Blog: http://garygregory.wordpress.com <http://garygregory.wordpress.com/>
> Home: http://garygregory.com/ <http://garygregory.com/>
> Tweet! http://twitter.com/GaryGregory <http://twitter.com/GaryGregory>
Re: 2.6 is not source compatible with 2.5
Posted by Ralph Goers <ra...@dslextreme.com>.
I suspect most people would have coded logger.error(message, t) though so hopefully it won’t be too bad.
Ralph
> On May 29, 2016, at 9:53 AM, Gary Gregory <ga...@gmail.com> wrote:
>
> We are going to need to update the release notes and/or site for 2.6 to note that the 2.6 is not source compatible with previous releases. I tested going from 2.5 to 2.6 at work and got:
>
> [ERROR] COMPILATION ERROR :
> [INFO] -------------------------------------------------------------
> [ERROR] /E:/vcs/svn/...XYZ..:[155,15] reference to error is ambiguous
> both method error(org.apache.logging.log4j.Marker,java.lang.String,java.lang.Object) in org.apache.logging.log4j.Logger and method error(java.lang.String,java.lang.Object,java.lang.Object) in org.apache.logging.log4j.Logger match
> [ERROR] /E:/vcs/svn/...XYZ...:[395,15] reference to trace is ambiguous
> both method trace(org.apache.logging.log4j.Marker,java.lang.String,java.lang.Object) in org.apache.logging.log4j.Logger and method trace(java.lang.String,java.lang.Object,java.lang.Object) in org.apache.logging.log4j.Logger match
> [INFO] 2 errors
>
> with source code like:
>
> public void xyz(final String message, final Throwable t) {
> ...
> logger.error(null, message, t);
> ...
> logger.trace(null, message, t);
> ...
> }
>
> Next time, I'll remember to test with a "real" client.
>
> Gary
>
> --
> E-Mail: garydgregory@gmail.com <ma...@gmail.com> | ggregory@apache.org <ma...@apache.org>
> Java Persistence with Hibernate, Second Edition <http://www.manning.com/bauer3/>
> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> Spring Batch in Action <http://www.manning.com/templier/>
> Blog: http://garygregory.wordpress.com <http://garygregory.wordpress.com/>
> Home: http://garygregory.com/ <http://garygregory.com/>
> Tweet! http://twitter.com/GaryGregory <http://twitter.com/GaryGregory>