Modified: tomcat/tc8.0.x/trunk/java/org/apache/catalina/tribes/util/LocalStrings.properties URL: http://svn.apache.org/viewvc/tomcat/tc8.0.x/trunk/java/org/apache/catalina/tribes/util/LocalStrings.properties?rev=1680802&r1=1680801&r2=1680802&view=diff ============================================================================== --- tomcat/tc8.0.x/trunk/java/org/apache/catalina/tribes/util/LocalStrings.properties (original) +++ tomcat/tc8.0.x/trunk/java/org/apache/catalina/tribes/util/LocalStrings.properties Thu May 21 10:14:50 2015 @@ -13,4 +13,11 @@ # See the License for the specific language governing permissions and # limitations under the License. +arrays.srcoffset.outOfBounds=srcoffset is out of bounds. +arrays.keyoffset.outOfBounds=keyoffset is out of bounds. +arrays.length.outOfBounds=not enough data elements in the key, length is out of bounds. +arrays.malformed.arrays=byte arrays must be represented as {1,3,4,5,6} +executorFactory.queue.full=Queue capacity is full. +executorFactory.not.running=Executor not running, can't force a command into the queues uuidGenerator.createRandom=Creation of SecureRandom instance for UUID generation using [{0}] took [{1}] milliseconds. +uuidGenerator.unable.fit=Unable to fit {0} bytes into the array. length:{1} required length:{2} \ No newline at end of file
Modified: tomcat/tc8.0.x/trunk/java/org/apache/catalina/tribes/util/UUIDGenerator.java URL: http://svn.apache.org/viewvc/tomcat/tc8.0.x/trunk/java/org/apache/catalina/tribes/util/UUIDGenerator.java?rev=1680802&r1=1680801&r2=1680802&view=diff ============================================================================== --- tomcat/tc8.0.x/trunk/java/org/apache/catalina/tribes/util/UUIDGenerator.java (original) +++ tomcat/tc8.0.x/trunk/java/org/apache/catalina/tribes/util/UUIDGenerator.java Thu May 21 10:14:50 2015 @@ -27,9 +27,9 @@ import org.apache.juli.logging.LogFactor * @version 1.0 */ public class UUIDGenerator { - private static final Log log = LogFactory.getLog(UUIDGenerator.class); + private static final Log log = LogFactory.getLog(UUIDGenerator.class.getPackage().getName()); protected static final StringManager sm = - StringManager.getManager("org.apache.catalina.tribes.util"); + StringManager.getManager("org.apache.catalina.tribes.util"); public static final int UUID_LENGTH = 16; public static final int UUID_VERSION = 4; @@ -58,7 +58,7 @@ public class UUIDGenerator { public static byte[] randomUUID(boolean secure, byte[] into, int offset) { if ( (offset+UUID_LENGTH)>into.length ) - throw new ArrayIndexOutOfBoundsException("Unable to fit "+UUID_LENGTH+" bytes into the array. length:"+into.length+" required length:"+(offset+UUID_LENGTH)); + throw new ArrayIndexOutOfBoundsException(sm.getString("uuidGenerator.unable.fit", UUID_LENGTH, into.length, (offset+UUID_LENGTH))); Random r = (secure&&(secrand!=null))?secrand:rand; nextBytes(into,offset,UUID_LENGTH,r); into[6+offset] &= 0x0F; Modified: tomcat/tc8.0.x/trunk/webapps/docs/changelog.xml URL: http://svn.apache.org/viewvc/tomcat/tc8.0.x/trunk/webapps/docs/changelog.xml?rev=1680802&r1=1680801&r2=1680802&view=diff ============================================================================== --- tomcat/tc8.0.x/trunk/webapps/docs/changelog.xml (original) +++ tomcat/tc8.0.x/trunk/webapps/docs/changelog.xml Thu May 21 10:14:50 2015 @@ -54,6 +54,14 @@ </fix> </changelog> </subsection> + <subsection name="Tribes"> + <changelog> + <scode> + Use <code>StringManager</code> to provide i18n support in the + <code>org.apache.catalina.tribes</code> packages. (kfujino) + </scode> + </changelog> + </subsection> </section> <section name="Tomcat 8.0.23 (markt)" rtext="release in progress"> <subsection name="Catalina"> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org