Re: Re: [lang] Java 5

2008-10-13 Thread Hendrik Maryns
Viraj Turakhia schreef: +1 in moving to JDK 1.5. New contributor, but always wanted to see 1.5 supported libraries in commons. +1, same remark. I generified both Collections and Lang some years ago, this might be of help, but I never got them compiling in javac, Eclipse compiles it fine.

Re: [lang] Java 5

2008-10-10 Thread Matt Benson
Resurrecting this thread from 3.5 months ago as my itch is returning: --- Niall Pemberton [EMAIL PROTECTED] wrote: On Fri, Jun 20, 2008 at 4:42 PM, Henri Yandell [EMAIL PROTECTED] wrote: On Thu, Jun 12, 2008 at 5:05 AM, sebb [EMAIL PROTECTED] wrote: On 12/06/2008, James Carman [EMAIL

Re: [lang] Java 5

2008-10-10 Thread James Carman
Matt, good idea to revive this. Commons needs to come to grips with JDK5. It reaches its EOSL on 10/30/2009 and our libraries don't even support it yet! We need to come up with an approach to this package renaming issue and just move forward. On Fri, Oct 10, 2008 at 10:44 AM, Matt Benson

Re: [lang] Java 5

2008-10-10 Thread Callistus Mendonca
+1 to move to jdk15 even if it means from ground up... Cal On Fri, Oct 10, 2008 at 11:07 AM, Simone Gianni [EMAIL PROTECTED] wrote: Hi all, non binding +1 for moving to new versions supporting JDK 5 features, even if breaking compatibility with older versions and rewriting APIs. There is a

Re: [lang] Java 5

2008-10-10 Thread Simone Gianni
Yes, I do agree, but again I'm completely non binding. Migrating code to new packages (or new classnames) where binary compatibility cannot be granted. Unfortunately I cannot foresee how many places would need to be refactored to support double classes/packages ... internally I mean, from a user

Re: [lang] Java 5

2008-10-10 Thread James Carman
I'm +1 for moving forward, but I would rather change the package name rather than break backward compatibility. There are a lot of libraries out there that depend on commons-* and you may need older versions on your classpath to get them to work. On Fri, Oct 10, 2008 at 11:07 AM, Simone Gianni

Re: [lang] Java 5

2008-10-10 Thread Viraj Turakhia
+1 in moving to JDK 1.5. New contributor, but always wanted to see 1.5 supported libraries in commons. -v On Fri, Oct 10, 2008 at 9:53 PM, Simone Gianni [EMAIL PROTECTED] wrote: Yes, I do agree, but again I'm completely non binding. Migrating code to new packages (or new classnames) where

Re: [lang] Java 5

2008-06-20 Thread Henri Yandell
On Thu, Jun 12, 2008 at 5:05 AM, sebb [EMAIL PROTECTED] wrote: On 12/06/2008, James Carman [EMAIL PROTECTED] wrote: On Thu, Jun 12, 2008 at 7:28 AM, Niall Pemberton [EMAIL PROTECTED] wrote: Do you mean that the removal of the enums would mean that we have to change package names?

RE: [lang] Java 5

2008-06-20 Thread Gary Gregory
] Sent: Friday, June 20, 2008 8:43 AM To: Commons Developers List Subject: Re: [lang] Java 5 On Thu, Jun 12, 2008 at 5:05 AM, sebb [EMAIL PROTECTED] wrote: On 12/06/2008, James Carman [EMAIL PROTECTED] wrote: On Thu, Jun 12, 2008 at 7:28 AM, Niall Pemberton [EMAIL PROTECTED] wrote: Do you

Re: [lang] Java 5

2008-06-20 Thread sebb
, June 20, 2008 8:43 AM To: Commons Developers List Subject: Re: [lang] Java 5 On Thu, Jun 12, 2008 at 5:05 AM, sebb [EMAIL PROTECTED] wrote: On 12/06/2008, James Carman [EMAIL PROTECTED] wrote: On Thu, Jun 12, 2008 at 7:28 AM, Niall Pemberton [EMAIL PROTECTED] wrote: Do you

RE: [lang] Java 5

2008-06-20 Thread Gary Gregory
-Original Message- From: sebb [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2008 9:47 AM To: Commons Developers List Subject: Re: [lang] Java 5 On 20/06/2008, Gary Gregory [EMAIL PROTECTED] wrote: Isn't using a new package name the safest thing to do? What if: My application depends

Re: [lang] Java 5

2008-06-20 Thread James Carman
On Fri, Jun 20, 2008 at 12:47 PM, sebb [EMAIL PROTECTED] wrote: On 20/06/2008, Gary Gregory [EMAIL PROTECTED] wrote: Isn't using a new package name the safest thing to do? What if: My application depends on lang1 (pre-Java 5 dependency) through a 3rd party dependency. I want to write my

Re: [lang] Java 5

2008-06-20 Thread Niall Pemberton
On Fri, Jun 20, 2008 at 4:42 PM, Henri Yandell [EMAIL PROTECTED] wrote: On Thu, Jun 12, 2008 at 5:05 AM, sebb [EMAIL PROTECTED] wrote: On 12/06/2008, James Carman [EMAIL PROTECTED] wrote: On Thu, Jun 12, 2008 at 7:28 AM, Niall Pemberton [EMAIL PROTECTED] wrote: Do you mean that the

RE: [lang] Java 5

2008-06-20 Thread Gary Gregory
Good plain from Niall IMO. Gary -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2008 11:21 AM To: Commons Developers List Subject: Re: [lang] Java 5 On Fri, Jun 20, 2008 at 4:42 PM, Henri Yandell [EMAIL PROTECTED] wrote: On Thu, Jun 12, 2008

Re: [lang] Java 5

2008-06-16 Thread Nacho Gonzalez Mac Dowell
simon escribió: On Fri, 2008-06-13 at 20:19 +0200, Nacho Gonzalez Mac Dowell wrote: [EMAIL PROTECTED] escribió: Tom Schindl schrieb: I can feel your pain. Thank god I'm using OSGi and can declare my dependencies explicitly :-) Yep. Well, it works for those

Re: [lang] Java 5

2008-06-14 Thread Henri Yandell
On Wed, Jun 11, 2008 at 1:10 PM, Matt Benson [EMAIL PROTECTED] wrote: There is a JIRA item for using generics, and another for varargs. Additionally it'd probably be nice to use generics-level reflection in the oacl.reflect package. Thoughts on [lang] 3.0 moving to Java 5 source level?

Re: [lang] Java 5

2008-06-13 Thread Nacho Gonzalez Mac Dowell
[EMAIL PROTECTED] escribió: Tom Schindl schrieb: I can feel your pain. Thank god I'm using OSGi and can declare my dependencies explicitly :-) Yep. Well, it works for those libs that are just internal implementation details. I'm not an OSGi expert, but if any exported class contains

Re: [lang] Java 5

2008-06-13 Thread simon
On Fri, 2008-06-13 at 20:19 +0200, Nacho Gonzalez Mac Dowell wrote: [EMAIL PROTECTED] escribió: Tom Schindl schrieb: I can feel your pain. Thank god I'm using OSGi and can declare my dependencies explicitly :-) Yep. Well, it works for those libs that are just internal

Re: [lang] Java 5

2008-06-13 Thread Holger Hoffstaette
On Fri, 13 Jun 2008 23:19:22 +0200, simon wrote: The second part of the jar hell problem is dependencies which *are* exported as part of a bundle's public API. For example, a bundle exports a class with this API: public boolean isInRange( org.apache.lang.math.DoubleRange range,

Re: [lang] Java 5

2008-06-12 Thread Ralph Goers
I haven't been following this list all that long so I'm interested in knowing why you want the package names changed. (I apologize in advance to those who have already heard this before). BTW - I'm +1 on Java 5. Not only for lang but for a bunch of commons projects. James Carman wrote: On

Re: [lang] Java 5

2008-06-12 Thread [EMAIL PROTECTED]
James Carman schrieb: On Wed, Jun 11, 2008 at 4:10 PM, Matt Benson [EMAIL PROTECTED] wrote: There is a JIRA item for using generics, and another for varargs. Additionally it'd probably be nice to use generics-level reflection in the oacl.reflect package. Thoughts on [lang] 3.0 moving to

Re: [lang] Java 5

2008-06-12 Thread Tom Schindl
I can feel your pain. Thank god I'm using OSGi and can declare my dependencies explicitly :-) I'm also +1 for changing the package name because one can not assume that everybody is using Felix, Equinox or other OSGi-Envs. Tom [EMAIL PROTECTED] schrieb: James Carman schrieb: On Wed, Jun

Re: [lang] Java 5

2008-06-12 Thread [EMAIL PROTECTED]
Tom Schindl schrieb: I can feel your pain. Thank god I'm using OSGi and can declare my dependencies explicitly :-) Yep. Well, it works for those libs that are just internal implementation details. I'm not an OSGi expert, but if any exported class contains a public or protected method that has

Re: [lang] Java 5

2008-06-12 Thread Tom Schindl
I think we should ask the felix people what can be solved with OSGi and what can not. Tom [EMAIL PROTECTED] schrieb: Tom Schindl schrieb: I can feel your pain. Thank god I'm using OSGi and can declare my dependencies explicitly :-) Yep. Well, it works for those libs that are just internal

Re: [lang] Java 5

2008-06-12 Thread Mario Ivankovits
Hi! +1 on generics +99 on package-name change. +100 The ASM project (org.objectweb.asm) changes their API significantly with major releases, but do not change the package name. And it causes major pain. For example, the following libs all require specific versions of ASM: * hibernate *

Re: [lang] Java 5

2008-06-12 Thread Niall Pemberton
On Thu, Jun 12, 2008 at 4:43 AM, James Carman [EMAIL PROTECTED] wrote: On Wed, Jun 11, 2008 at 4:10 PM, Matt Benson [EMAIL PROTECTED] wrote: There is a JIRA item for using generics, and another for varargs. Additionally it'd probably be nice to use generics-level reflection in the

Re: [lang] Java 5

2008-06-12 Thread James Carman
On Thu, Jun 12, 2008 at 7:11 AM, Niall Pemberton [EMAIL PROTECTED] wrote: P.S. Perhaps its a moot point in Lang's case since I guess the deprecated enum package has to be removed to move to a minimum of JDK 1.5. Do you mean that the removal of the enums would mean that we have to change

Re: [lang] Java 5

2008-06-12 Thread James Carman
On Thu, Jun 12, 2008 at 2:46 AM, Ralph Goers [EMAIL PROTECTED] wrote: I haven't been following this list all that long so I'm interested in knowing why you want the package names changed. (I apologize in advance to those who have already heard this before). Sure. We should probably have a

Re: [lang] Java 5

2008-06-12 Thread Niall Pemberton
On Thu, Jun 12, 2008 at 12:19 PM, James Carman [EMAIL PROTECTED] wrote: On Thu, Jun 12, 2008 at 7:11 AM, Niall Pemberton [EMAIL PROTECTED] wrote: P.S. Perhaps its a moot point in Lang's case since I guess the deprecated enum package has to be removed to move to a minimum of JDK 1.5. Do

Re: [lang] Java 5

2008-06-12 Thread James Carman
On Thu, Jun 12, 2008 at 7:11 AM, Niall Pemberton [EMAIL PROTECTED] wrote: I would agree that for Lang that *if* the API change breaks compatibility, then a package name change would be appropriate - but I think its a mistake in general to start making decisions along the lines JDK

Re: [lang] Java 5

2008-06-12 Thread James Carman
On Thu, Jun 12, 2008 at 7:28 AM, Niall Pemberton [EMAIL PROTECTED] wrote: Do you mean that the removal of the enums would mean that we have to change package names? Would class/interface removals necessitate a package name change? I haven't really thought that through. Perhaps not,

Re: [lang] Java 5

2008-06-12 Thread sebb
On 12/06/2008, James Carman [EMAIL PROTECTED] wrote: On Thu, Jun 12, 2008 at 7:28 AM, Niall Pemberton [EMAIL PROTECTED] wrote: Do you mean that the removal of the enums would mean that we have to change package names? Would class/interface removals necessitate a package name

Re: [lang] Java 5

2008-06-12 Thread James Carman
On Thu, Jun 12, 2008 at 8:05 AM, sebb [EMAIL PROTECTED] wrote: Removal of a *public* interface/method/class means that the API is not compatible, as it is not possible to replace the jar without breaking classes that use these items. I guess I was thinking of the situation where you'd have

Re: [lang] Java 5

2008-06-12 Thread Emmanuel Bourg
sebb a écrit : BTW, perhaps Commons should have a similar naming convention for packages that need to contain public methods, but which are only intended to be used in Commons libraries. Or a big DO NOT USE THIS CLASS, RESERVED FOR INTERNAL USE in the Javadoc ? Emmanuel Bourg

RE: [lang] Java 5

2008-06-12 Thread Jörg Schaible
[EMAIL PROTECTED] wrote: On Thu, Jun 12, 2008 at 7:11 AM, Niall Pemberton [EMAIL PROTECTED] wrote: I would agree that for Lang that *if* the API change breaks compatibility, then a package name change would be appropriate - but I think its a mistake in general to start making decisions

Re: [lang] Java 5

2008-06-12 Thread [EMAIL PROTECTED]
Emmanuel Bourg schrieb: sebb a écrit : BTW, perhaps Commons should have a similar naming convention for packages that need to contain public methods, but which are only intended to be used in Commons libraries. Or a big DO NOT USE THIS CLASS, RESERVED FOR INTERNAL USE in the Javadoc ? In

Re: [lang] Java 5

2008-06-12 Thread [EMAIL PROTECTED]
James Carman schrieb: On Thu, Jun 12, 2008 at 8:05 AM, sebb [EMAIL PROTECTED] wrote: Removal of a *public* interface/method/class means that the API is not compatible, as it is not possible to replace the jar without breaking classes that use these items. I guess I was thinking

Re: [lang] Java 5

2008-06-12 Thread Tom Schindl
Well the whole commons stack now has support for OSGi and OSGi provides a mechanism to not export a package so I'd say one should use the internal package (e.g. org.apache.commons.lang.internal) for all classes that have to be public but are not part of the public API. This is better than

Re: [lang] Java 5

2008-06-12 Thread Ralph Goers
James Carman wrote: Perhaps we need to come up with a standardized versioning strategy for Commons projects, then. A simple rule might be that if you're breaking compatibility, you have to jump major versions and change your package names (I would argue that whenever we jump version numbers,

Re: [lang] Java 5

2008-06-12 Thread James Carman
On Thu, Jun 12, 2008 at 10:45 AM, Ralph Goers [EMAIL PROTECTED] wrote: This confuses me. Doesn't the fact that since the code will no longer run on a pre-1.5 JDK mean that compatibility is broken, even if not a single line of code changes? (Yes - I know that we technically only release source

Re: [lang] Java 5

2008-06-12 Thread Ralph Goers
James Carman wrote: On Thu, Jun 12, 2008 at 10:45 AM, Ralph Goers [EMAIL PROTECTED] wrote: This confuses me. Doesn't the fact that since the code will no longer run on a pre-1.5 JDK mean that compatibility is broken, even if not a single line of code changes? (Yes - I know that we

Re: [lang] Java 5

2008-06-12 Thread James Carman
Yes, of course! :) But, who does that anymore? ;) I'm kidding of course. I know that some vendors only support JDK 1.4 currently. On Thu, Jun 12, 2008 at 11:16 AM, Ralph Goers [EMAIL PROTECTED] wrote: James Carman wrote: On Thu, Jun 12, 2008 at 10:45 AM, Ralph Goers [EMAIL PROTECTED]

Re: [lang] Java 5

2008-06-12 Thread simon.kitch...@chello.at
Ralph Goers schrieb: James Carman wrote: On Thu, Jun 12, 2008 at 10:45 AM, Ralph Goers [EMAIL PROTECTED] wrote: This confuses me. Doesn't the fact that since the code will no longer run on a pre-1.5 JDK mean that compatibility is broken, even if not a single line of code changes?

[lang] Java 5

2008-06-11 Thread Matt Benson
There is a JIRA item for using generics, and another for varargs. Additionally it'd probably be nice to use generics-level reflection in the oacl.reflect package. Thoughts on [lang] 3.0 moving to Java 5 source level? -Matt

RE: [lang] Java 5

2008-06-11 Thread Gary Gregory
+1 for Java 5 and using generics. Gary -Original Message- From: Matt Benson [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2008 1:10 PM To: commons Developers List Subject: [lang] Java 5 There is a JIRA item for using generics, and another for varargs. Additionally it'd probably

Re: [lang] Java 5

2008-06-11 Thread James Carman
On Wed, Jun 11, 2008 at 4:10 PM, Matt Benson [EMAIL PROTECTED] wrote: There is a JIRA item for using generics, and another for varargs. Additionally it'd probably be nice to use generics-level reflection in the oacl.reflect package. Thoughts on [lang] 3.0 moving to Java 5 source level? +1,