Upgrade commons-lang to 2.4
Description
Environment
Test Plan
is depended on by
is related to
Activity

Steve Swinsburg August 5, 2010 at 5:53 AM
Just a note that ANU has commons-lang 2.4 in production with our 2.6.x build.

Steve Swinsburg August 5, 2010 at 5:50 AM
r80863 brings this to 1.0.x ad thus 2.6.x
Thomas Amsler November 10, 2009 at 1:24 PM
Are there any plans to backport this change into K1 v1.0.x so that commons-lang to 2.4 is available for sakai-2.6.x?

Steve Swinsburg May 6, 2009 at 7:41 AM
Here's a bit more info collated from the release-history of 2.4. The long and short of it is that it should be safe to upgrade to 2.4.
------------------
Lang 2.4 no longer attempts to target the Java 1.1 environment and now targets Java 1.2. While previous versions
were built for 1.1, some parts were using methods that were only available in 1.2, and the Enum class had
become dependent on Java 1.3.
INCOMPATIBLE CHANGES WITH VERSION 2.3:
None
INCOMPATIBLE CHANGES WITH VERSION 2.2:
Calling stop on a suspended StopWatch will no longer change the underlying time.
It's very unlikely anyone was relying on that bug as a feature.
ADDITIONAL INCOMPATIBLE CHANGES WITH VERSION 2.0:
The Nestable interface defines the method indexOfThrowable(Class).
Previously the implementations checked only for a specific Class.
Now they check for subclasses of that Class as well.
For most situations this will be the expected behaviour (ie. its a bug fix).
If it causes problems, please use the ExceptionUtils.indexOfThrowable(Class) method instead.
Note that the ExceptionUtils method is available in v1.0 and v2.0 of commons-lang and has not been changed.
(An alternative to this is to change the public static matchSubclasses flag on NestableDelegate.
However, we don't recommend that as a long-term solution.)
The StopWatch class has had much extra validation added.
If your code previously relied on unusual aspects, it may no longer work.
Starting with version 2.1, Ant version 1.6.x is required to build. Copy
junit.jar to ANT_HOME/lib. You can get JUnit from http://www.junit.org. See the developer's guide
for more details.
DEPRECATIONS FROM 2.3 to 2.4:
ObjectUtils.appendIdentityToString(StringBuffer, Object) - has very odd semantics, use
ObjectUtils.identityToString(StringBuffer, Object) instead.
public static java.util.Date add(java.util.Date, int, int) - it is not intended for this
method to be public. Please let us know if you use this.
DEPRECATIONS FROM 2.2 to 2.3:
None
DEPRECATIONS FROM 2.1 to 2.2:
None
Sakai currently deploys commons-lang 2.1 to shared this should be upgraded to 2.4
The revision history http://commons.apache.org/lang/release-history.html indicates only one incompatibility:
"Calling stop on a suspended StopWatch will no longer change the underlying time.
It's very unlikely anyone was relying on that bug as a feature."