Re: ThreadContextMap3

2017-01-17 Thread Matt Sicker
Is it possible to break into two and have ThreadContextMap2 extend them both and maintain binary and API compatibility? On 17 January 2017 at 11:28, Apache wrote: > Yes, at this point it is water under the bridge. Let’s just worry about #3. > > Ralph > > On Jan 17, 2017, at 9:33 AM, Mikael Ståld

Re: ThreadContextMap3

2017-01-17 Thread Apache
Yes, at this point it is water under the bridge. Let’s just worry about #3. Ralph > On Jan 17, 2017, at 9:33 AM, Mikael Ståldal wrote: > > It will be hard to find a suitable name for ThreadContextMap2 since it adds > two unrelated things. Ideally it should be spitted into two interfaces, but I

Re: ThreadContextMap3

2017-01-17 Thread Mikael Ståldal
It will be hard to find a suitable name for ThreadContextMap2 since it adds two unrelated things. Ideally it should be spitted into two interfaces, but I guess that will be hard to do without breaking binary compatibility. I suggest we leave it as it is. On Tue, Jan 17, 2017 at 4:40 PM, Matt Sicke

Re: ThreadContextMap3

2017-01-17 Thread Matt Sicker
Can we rename ThreadContextMap2 to something else, deprecate it, and have it extend the new interface? Or does that break compatibility? Because if we can fix the naming scheme while having "alias" interfaces stay in there (until a theoretical 3.x API), then it'd feel less dirty. Also, Java 8 woul

Re: ThreadContextMap3

2017-01-17 Thread Mikael Ståldal
BTW, shouldn't we have a putAllValues(final Map map) in ObjectThreadContextMap? On Tue, Jan 17, 2017 at 10:13 AM, Mikael Ståldal wrote: > I think we named it ThreadContextMap3 since there was already an > ThreadContextMap2 (which is part of 2.7, and we are stuck with it). > > I am fine with rena

Re: ThreadContextMap3

2017-01-17 Thread Mikael Ståldal
I think we named it ThreadContextMap3 since there was already an ThreadContextMap2 (which is part of 2.7, and we are stuck with it). I am fine with renaming it to CleanableThreadContextMap (doing it not). But I think it should still extend ThreadContextMap2 since it is not really independent of it

Re: ThreadContextMap3

2017-01-16 Thread Remko Popma
Also fine with renaming. Sent from my iPhone > On Jan 17, 2017, at 9:07, Remko Popma wrote: > > I think it was originally standalone and changed to the current extending > interface after feedback on the mailing list. > > I'm fine with standalone interfaces and having the implementation imp

Re: ThreadContextMap3

2017-01-16 Thread Remko Popma
I think it was originally standalone and changed to the current extending interface after feedback on the mailing list. I'm fine with standalone interfaces and having the implementation implement multiple interfaces. Remko Sent from my iPhone > On Jan 17, 2017, at 6:25, Matt Sicker wrote:

Re: ThreadContextMap3

2017-01-16 Thread Matt Sicker
I agree on not extending interfaces. Some of the other context map interfaces are standalone, and I don't see why TCM2 had to extend anything. On 16 January 2017 at 15:16, Apache wrote: > I presume it was named ThreadContextMap3 so there could be a > ThreadContextMap4 since 3 extends 2 and 2 ext

Re: ThreadContextMap3

2017-01-16 Thread Apache
I presume it was named ThreadContextMap3 so there could be a ThreadContextMap4 since 3 extends 2 and 2 extends the first one. Frankly, I dislike this practice very, very much. Instead, each interface should be named as you suggest and NOT extend the prior interface. Instead, the implementation