1f075ab | Daniel Rall | 25 August 2002, 19:17:31 UTC | Leveraged NestableDelegate.getMessage(String). git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136990 13f79535-47bb-0310-9956-ffa450edef68 | 25 August 2002, 19:17:31 UTC |
3345707 | Daniel Rall | 25 August 2002, 19:09:38 UTC | Renamed "cause" private field to "nestable" to better reflect what it is. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136989 13f79535-47bb-0310-9956-ffa450edef68 | 25 August 2002, 19:09:38 UTC |
241e24c | Daniel Rall | 25 August 2002, 19:02:49 UTC | getMessage(String): Corrected grammar in JavaDoc. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136988 13f79535-47bb-0310-9956-ffa450edef68 | 25 August 2002, 19:02:49 UTC |
e412572 | Steven Caswell | 25 August 2002, 13:21:24 UTC | removed testing of deprecated methods getLength() and indexOfThrowable(int, Class) git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136987 13f79535-47bb-0310-9956-ffa450edef68 | 25 August 2002, 13:21:24 UTC |
1962432 | Steven Caswell | 25 August 2002, 13:20:59 UTC | removed deprecated methods getLength() and indexOfThrowable(int, Class) git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136986 13f79535-47bb-0310-9956-ffa450edef68 | 25 August 2002, 13:20:59 UTC |
b34534b | Daniel Rall | 24 August 2002, 19:18:50 UTC | ExceptionUtils.getThrowables(Throwable): Switched from concrete ArrayList local reference to List. ExceptionUtils.getStackTrace(Throwable): New method for extracting the text of a stack trace. ExceptionUtils.getStackFrames(Throwable): Splits an exception's stace trace into frames. ExceptionUtils.getStackFrames(String): Splits a stace trace into frames. NestableDelegate printStackTrace(): Delegate to printStackTrace(PrintStream) using System.err rather than duplicating its impl. NestableDelegate printStackTrace(PrintWriter): Used new name getStackFrames() method name. NestableDelegate getStackFrames(Throwable): Renamed decompose() to this and delegated to ExceptionUtils.getStackFrames(String) for half of impl. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136985 13f79535-47bb-0310-9956-ffa450edef68 | 24 August 2002, 19:18:50 UTC |
c838670 | Stephen Colebourne | 23 August 2002, 08:00:26 UTC | Constrctor made public to enable those who use the class as a Bean git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136984 13f79535-47bb-0310-9956-ffa450edef68 | 23 August 2002, 08:00:26 UTC |
155943d | Stephen Colebourne | 22 August 2002, 22:11:25 UTC | Initial version of SystemUtils for system constants git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136983 13f79535-47bb-0310-9956-ffa450edef68 | 22 August 2002, 22:11:25 UTC |
9805a42 | Daniel Rall | 22 August 2002, 20:44:03 UTC | Corrected wording in KNOWN ISSUES section. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136982 13f79535-47bb-0310-9956-ffa450edef68 | 22 August 2002, 20:44:03 UTC |
a79ebff | Daniel Rall | 22 August 2002, 20:43:25 UTC | Corrected the anchor name for the KNOWN ISSUES section. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136981 13f79535-47bb-0310-9956-ffa450edef68 | 22 August 2002, 20:43:25 UTC |
470f6a9 | Daniel Rall | 22 August 2002, 20:42:52 UTC | Added a KNOWN ISSUES section. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136980 13f79535-47bb-0310-9956-ffa450edef68 | 22 August 2002, 20:42:52 UTC |
d659fc0 | Daniel Rall | 22 August 2002, 00:04:42 UTC | Applied squashing of impl of getThrowableCount(Throwable) to getThrowables(Throwable). git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136979 13f79535-47bb-0310-9956-ffa450edef68 | 22 August 2002, 00:04:42 UTC |
3ad9e1f | Daniel Rall | 22 August 2002, 00:03:41 UTC | Even shorter impl of getThrowableCount(Throwable) which returns zero when passed a null argument. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136978 13f79535-47bb-0310-9956-ffa450edef68 | 22 August 2002, 00:03:41 UTC |
e080096 | Daniel Rall | 22 August 2002, 00:00:09 UTC | testGetThrowableCount(): New method to get ExceptionUtils.getThrowableCount() with null argument. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136977 13f79535-47bb-0310-9956-ffa450edef68 | 22 August 2002, 00:00:09 UTC |
90b54cc | Daniel Rall | 21 August 2002, 23:57:00 UTC | o Improved getThrowableCount(Throwable) to return zero when passed a null argument. o Added @param JavaDoc for methods added during last commit. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136976 13f79535-47bb-0310-9956-ffa450edef68 | 21 August 2002, 23:57:00 UTC |
c5a3bf5 | Daniel Rall | 21 August 2002, 23:52:02 UTC | Moved the implementations of getThrowableCount(), getThrowables(), indexOfThrowable(Class), and indexOfThrowable(Class, int) methods to ExceptionUtils, as suggested by Stephen Colebourne <scolebourne@btopenworld.com>. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136975 13f79535-47bb-0310-9956-ffa450edef68 | 21 August 2002, 23:52:02 UTC |
d2b4104 | Daniel Rall | 21 August 2002, 23:51:22 UTC | Added the getThrowableCount(Throwable), getThrowables(Throwable), indexOfThrowable(Throwable, Class), and indexOfThrowable(Throwable, Class, int) methods factored out of NestableDelegate, as suggested by Stephen Colebourne <scolebourne@btopenworld.com>. Added a TODO for the remaining methods he suggested moving. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136974 13f79535-47bb-0310-9956-ffa450edef68 | 21 August 2002, 23:51:22 UTC |
0b3f9dc | Daniel Rall | 21 August 2002, 07:31:54 UTC | Broke long lines; no functional change. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136973 13f79535-47bb-0310-9956-ffa450edef68 | 21 August 2002, 07:31:54 UTC |
10c9649 | Daniel Rall | 21 August 2002, 07:22:47 UTC | o Changed type of "cause" instance field from Nestable to Throwable. Since implementation of Throwable is already required, this doesn't change the interface, but does simplify the internals. o Simplified code in getThrowableCount() method by removing extraneous null check and extra reference. o Implemented suggestion by Joachim.Sauer@tp-soft.com to use ExceptionUtils where Nestable.getCause() was previously called. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136972 13f79535-47bb-0310-9956-ffa450edef68 | 21 August 2002, 07:22:47 UTC |
13fecb8 | Daniel Rall | 21 August 2002, 07:13:50 UTC | getCauseUsingWellKnownTypes(Throwable): Collapsed checks for instanceof NestableException and NestableRuntimeException into single check for Nestable interface. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136971 13f79535-47bb-0310-9956-ffa450edef68 | 21 August 2002, 07:13:50 UTC |
3e5b0bd | Stephen Colebourne | 15 August 2002, 22:37:30 UTC | Change HashCodeUtils to HashCodeBuilder git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136970 13f79535-47bb-0310-9956-ffa450edef68 | 15 August 2002, 22:37:30 UTC |
da49474 | Daniel Rall | 14 August 2002, 23:16:55 UTC | CAUSE_METHOD_PARAMS: Updated JavaDoc for recent API enchancements. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136969 13f79535-47bb-0310-9956-ffa450edef68 | 14 August 2002, 23:16:55 UTC |
7004cc6 | Daniel Rall | 14 August 2002, 23:15:17 UTC | CAUSE_METHOD_NAMES: Updated JavaDoc for last commit. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136968 13f79535-47bb-0310-9956-ffa450edef68 | 14 August 2002, 23:15:17 UTC |
99ba8f1 | Daniel Rall | 14 August 2002, 23:08:28 UTC | CAUSE_METHOD_NAMES: Repurposed CAUSE_METHOD_NAME to be a list of method names which may yield a wrapped exception. getCause(Throwable): Now just wraps getCause(Throwable, String[]), passing in CAUSE_METHOD_NAMES as its list of method names. getCause(Throwable, String[]): Refactored code extracted from getCause(Throwable) which looks at a list of method names, plus a "detail" field. getCauseUsingMethodName(): Swapped parameter order for consistency. getCauseUsingFieldName(): New method which introspects fields instead of methods. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136967 13f79535-47bb-0310-9956-ffa450edef68 | 14 August 2002, 23:08:28 UTC |
6fdd168 | Daniel Rall | 14 August 2002, 21:05:19 UTC | getCause(Throwable): Refactored into two methods which are called internally. This will allow more cause method names to be added with ease. getCauseUsingWellKnownTypes(Throwable): Extracted from getCause(). getCauseUsingMethodName(String, Throwable): Extracted from getCause(). git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136966 13f79535-47bb-0310-9956-ffa450edef68 | 14 August 2002, 21:05:19 UTC |
f7c60dc | Henri Yandell | 14 August 2002, 04:51:28 UTC | Checked back in for consideration in 1.0 git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136965 13f79535-47bb-0310-9956-ffa450edef68 | 14 August 2002, 04:51:28 UTC |
f740ef8 | Daniel Rall | 13 August 2002, 19:58:49 UTC | getCause(Throwable): Added detection of SQLException and its getNextException() method pointed out by Costin M., Paul Jack, and Nicola Ken Barozzi. They've also suggested some more general patterns which we're discussing the addition of on the commons-dev@jakarta.apache.org list. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136964 13f79535-47bb-0310-9956-ffa450edef68 | 13 August 2002, 19:58:49 UTC |
72200ff | Daniel Rall | 13 August 2002, 18:19:06 UTC | getCause(Throwable): Adjusted JavaDoc of method to note the return type of the getCause() method it checks for. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136963 13f79535-47bb-0310-9956-ffa450edef68 | 13 August 2002, 18:19:06 UTC |
d5525cc | Daniel Rall | 13 August 2002, 18:17:39 UTC | getCause(Throwable): Perform a softer check on the return type of the argument's getCause() method, doing isAssignableFrom() instead of a hard memory address comparison. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136962 13f79535-47bb-0310-9956-ffa450edef68 | 13 August 2002, 18:17:39 UTC |
6053ce3 | Daniel Rall | 13 August 2002, 18:05:58 UTC | Added a utility for examining Throwable objects, as proposed by Costin <costinm@covalent.net> and Henri Yandell <bayard@apache.org>. Comes complete with a full suite of tests for initial functionality. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136961 13f79535-47bb-0310-9956-ffa450edef68 | 13 August 2002, 18:05:58 UTC |
aef2306 | Daniel Rall | 13 August 2002, 17:56:45 UTC | Compile the test cases without deprecation warnings, since we are testing deprecated methods in the exception sub-package. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136960 13f79535-47bb-0310-9956-ffa450edef68 | 13 August 2002, 17:56:45 UTC |
6f17f41 | Stephen Colebourne | 11 August 2002, 23:20:09 UTC | Add new Enum class tests to build xml git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136959 13f79535-47bb-0310-9956-ffa450edef68 | 11 August 2002, 23:20:09 UTC |
ce06610 | Stephen Colebourne | 11 August 2002, 23:17:54 UTC | Add new Enum class (similar to enum in C) plus associated Utils and tests git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136958 13f79535-47bb-0310-9956-ffa450edef68 | 11 August 2002, 23:17:54 UTC |
1ca31bb | Daniel Rall | 11 August 2002, 17:52:21 UTC | CONSTANT: Adjusted documentation, making it into JavaDoc. Incidently, this constant could use a more descriptive name which better indicates its use. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136957 13f79535-47bb-0310-9956-ffa450edef68 | 11 August 2002, 17:52:21 UTC |
6b2b84f | Stephen Colebourne | 10 August 2002, 12:13:28 UTC | Add HashCodeUtilsTest git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136955 13f79535-47bb-0310-9956-ffa450edef68 | 10 August 2002, 12:13:28 UTC |
1c15cb1 | Stephen Colebourne | 10 August 2002, 12:13:10 UTC | Test HashCodeUtils - a utility to build good hashCodes git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136954 13f79535-47bb-0310-9956-ffa450edef68 | 10 August 2002, 12:13:10 UTC |
25508b3 | Stephen Colebourne | 10 August 2002, 12:12:49 UTC | Add HashCodeUtils - a utility to build good hashCodes git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136953 13f79535-47bb-0310-9956-ffa450edef68 | 10 August 2002, 12:12:49 UTC |
477290c | Henri Yandell | 01 August 2002, 20:15:43 UTC | Added a stackTrace method. Possibly needs renaming. It's in common use in other Jakarta projects such as Ant. Turns a Throwable into a String. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136952 13f79535-47bb-0310-9956-ffa450edef68 | 01 August 2002, 20:15:43 UTC |
58503e7 | Steven Caswell | 26 July 2002, 20:30:58 UTC | updated tests to reflect the following changes: deprecated method getLength(), replaced with getThrowableCount(); deprecated indexOfThrowable(int, Class), replaced with indexOfThrowable(Class, int) to make signature consistent with other APIs; changed functionality of methods that receive an index argument to throw an IndexOutOfBoundsException if the index is specified incorrectly, rather than absorbing invalid indices silently, to bring in line with the String API git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136951 13f79535-47bb-0310-9956-ffa450edef68 | 26 July 2002, 20:30:58 UTC |
e0340c8 | Steven Caswell | 26 July 2002, 20:30:10 UTC | deprecated method getLength(), replaced with getThrowableCount(); deprecated indexOfThrowable(int, Class), replaced with indexOfThrowable(Class, int) to make signature consistent with other APIs; changed functionality of methods that receive an index argument to throw an IndexOutOfBoundsException if the index is specified incorrectly, rather than absorbing invalid indices silently, to bring in line with the String API cleaned up javadoc; rearranged methods alphabetically git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136950 13f79535-47bb-0310-9956-ffa450edef68 | 26 July 2002, 20:30:10 UTC |
b6302ed | Steven Caswell | 26 July 2002, 19:46:38 UTC | updated e-maill address for Steven Caswell git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136949 13f79535-47bb-0310-9956-ffa450edef68 | 26 July 2002, 19:46:38 UTC |
f7a767a | Jason van Zyl | 26 July 2002, 19:07:07 UTC | o using the parent project.xml git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136948 13f79535-47bb-0310-9956-ffa450edef68 | 26 July 2002, 19:07:07 UTC |
44c94d5 | Jason van Zyl | 26 July 2002, 18:58:35 UTC | o adding .txt extension to keep windows and checkstyle happy. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136947 13f79535-47bb-0310-9956-ffa450edef68 | 26 July 2002, 18:58:35 UTC |
9182104 | Henri Yandell | 26 July 2002, 14:05:04 UTC | Changed the javadoc on this one. Randomness stuff came solely from GenJava library. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136946 13f79535-47bb-0310-9956-ffa450edef68 | 26 July 2002, 14:05:04 UTC |
e950d9b | Daniel Rall | 26 July 2002, 01:40:11 UTC | Removed two broken methods from StringUtils. Since a beta has gone out, this is not good practice. However, since 1.0 final has not yet been released, it is out-weighed by the trade off of releasing code that just plain doesn't work. Use str.getBytes(encoding) in place of convertUnicodeToNative(). Use new String(byte[], encoding) in place of convertNativeToUnicode(). git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136945 13f79535-47bb-0310-9956-ffa450edef68 | 26 July 2002, 01:40:11 UTC |
742a42d | Daniel Rall | 26 July 2002, 01:14:28 UTC | Added myself to commiters list. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136944 13f79535-47bb-0310-9956-ffa450edef68 | 26 July 2002, 01:14:28 UTC |
a0cc54b | Henri Yandell | 26 July 2002, 00:41:52 UTC | Adding Lang maven POM. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136943 13f79535-47bb-0310-9956-ffa450edef68 | 26 July 2002, 00:41:52 UTC |
9c8d148 | Henri Yandell | 25 July 2002, 22:44:29 UTC | wrote a release text. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136941 13f79535-47bb-0310-9956-ffa450edef68 | 25 July 2002, 22:44:29 UTC |
7fa4ee3 | Henri Yandell | 25 July 2002, 22:18:30 UTC | changed release info and added steven caswell as a committer. PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136940 13f79535-47bb-0310-9956-ffa450edef68 | 25 July 2002, 22:18:30 UTC |
80d827f | Henri Yandell | 23 July 2002, 05:21:28 UTC | Added a concatenate method. While this is just a join with a "" delimiter, the Avalon StringUtil shows that this is a valid way of looking at the functionality. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136939 13f79535-47bb-0310-9956-ffa450edef68 | 23 July 2002, 05:21:28 UTC |
46872f9 | Henri Yandell | 21 July 2002, 20:19:50 UTC | Moved deleteWhitespace from CharSetUtils to StringUtils. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136938 13f79535-47bb-0310-9956-ffa450edef68 | 21 July 2002, 20:19:50 UTC |
97b5ac9 | Henri Yandell | 21 July 2002, 20:14:14 UTC | Added a deleteWhitespace method as Jakarta.Avalon has a need for this. Should this go on StringUtils though. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136937 13f79535-47bb-0310-9956-ffa450edef68 | 21 July 2002, 20:14:14 UTC |
df7a930 | Henri Yandell | 19 July 2002, 04:27:31 UTC | Class names updated and new classes added. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136936 13f79535-47bb-0310-9956-ffa450edef68 | 19 July 2002, 04:27:31 UTC |
f0a5f0e | Henri Yandell | 19 July 2002, 04:05:57 UTC | Added another test to show that I can pass in delimiters that don't appear in the string I'm stripping. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136935 13f79535-47bb-0310-9956-ffa450edef68 | 19 July 2002, 04:05:57 UTC |
e488b7b | Henri Yandell | 19 July 2002, 04:04:45 UTC | stripStart and stripEnd methods changed to fulfill their javadoc. Passing in strip("-+-+FOO---", "+-") will result in FOO. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136934 13f79535-47bb-0310-9956-ffa450edef68 | 19 July 2002, 04:04:45 UTC |
f01f3e8 | Henri Yandell | 19 July 2002, 03:39:48 UTC | removed my junit location :) git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136933 13f79535-47bb-0310-9956-ffa450edef68 | 19 July 2002, 03:39:48 UTC |
6627f7a | Henri Yandell | 19 July 2002, 03:35:56 UTC | Initial copy from jakarta-commons-sandbox git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136932 13f79535-47bb-0310-9956-ffa450edef68 | 19 July 2002, 03:35:56 UTC |
750a21e | No No | 19 July 2002, 03:35:56 UTC | New repository initialized by cvs2svn. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136931 13f79535-47bb-0310-9956-ffa450edef68 | 19 July 2002, 03:35:56 UTC |