[ANNOUNCE] Apache Commons Lang Version 3.14.0

2023-11-27 Thread Gary Gregory
The Apache Commons team is pleased to announce Apache Commons Lang Version 3.14.0. Commons Lang is a set of utility functions and reusable components that should be of use in any Java environment. Starting with Commons Lang 3.9, we target Java 8, making use of those features. For advice

[ANNOUNCEMENT] Apache Commons Lang 3.13.0

2023-07-28 Thread Gary Gregory
The Apache Commons Team is pleased to announce Apache Commons Lang 3.13.0. Apache Commons Lang is a package of Java utility classes for the classes that are in java.lang's hierarchy, or are considered to be so standard as to justify existence in java.lang. Historical list of changes: https

Re: [Lang] Advice on "Diff" usage

2023-07-12 Thread Gilles Sadowski
Le mer. 12 juil. 2023 à 00:13, Gary Gregory a écrit : > > I updated the Javadoc for both classes. Thanks. FTR, I've filed https://issues.apache.org/jira/projects/LANG/issues/LANG-1701 for the more important issue(s). Regards,

Re: [Lang] Advice on "Diff" usage

2023-07-11 Thread Gary Gregory
; @Override > > > public double getValue() { > > > return c; > > > } > > > } > > > > > > public class MyContainer implements Container { > > > private final Content[] contentArr; > > > > > > MyContain

Re: [Lang] Advice on "Diff" usage

2023-07-10 Thread Gilles Sadowski
private final Content[] contentArr; > > > > MyContainer(double ... inputs) { > > final int len = inputs.length; > > contentArr = new Content[len]; > > for (int i = 0; i < len; i++) { > > contentArr[i] = n

Re: [Lang] Advice on "Diff" usage

2023-07-09 Thread Gary Gregory
rr[i] = new MyContent(inputs[i]); > } > } > > @Override > public Content[] getContentArray() { > return contentArr; > } > } > ---CUT--- > how should I go about in order t

[Lang] Advice on "Diff" usage

2023-07-09 Thread Gilles Sadowski
ntent[] getContentArray() { return contentArr; } } ---CUT--- how should I go about in order to get the "diff" between instances of "MyContainer"? Thanks, Gilles [1] https://commons.apache.org/proper/commons-lang/javadocs/api-release/org/ap

Re: Apache Commons Lang (Commons Lang3) Compatibility

2022-07-27 Thread Gary Gregory
Hello Pranav Kumar, I've not tested that very old version of Commons Lang with modern JDKs. The git master build runs on Java 8, 11, and 17. So you should expect the current version 3.12.0 to run ok on the above Java LTS versions. It is always best to rely on your own builds and tests

Apache Commons Lang (Commons Lang3) Compatibility

2022-07-27 Thread Pranav Kumar (EXT)
Hi Team, Could you please confirm is Apache Commons Lang (Commons Lang3) version 3.1 is compatible with Open Java 11 & 17, if not which version is compatible with Open Java 11 & 17? Regards, Pranav Kumar

[ANNOUNCEMENT] Apache Commons Lang 3.12.0

2021-03-03 Thread Gary Gregory
Apache Commons Lang 3.12.0 is out. Here are the release notes for the 3.12.0-SNAPSHOT version of Apache Commons Lang. Commons Lang is a set of utility functions and reusable components that should be of use in any Java environment. Lang 3.9 and onwards now targets Java 8, making use of features

[ANNOUCEMENT] Apache Commons Lang Version 3.11

2020-07-17 Thread Gary Gregory
The Apache Commons Lang team has released version 3.11. This document contains the release notes for the 3.11 version of Apache Commons Lang. Commons Lang is a set of utility functions and reusable components that should be of use in any Java environment. Lang 3.9 and onwards now targets Java 8

[ANNOUNCEMENT] Apache Commons Lang 3.10

2020-03-28 Thread Gary Gregory
The Apache Commons Team is please to announce the release of Apache Commons Lang 3.10. Commons Lang is a set of utility functions and reusable components that should be of use in any Java environment. Lang 3.9 and onwards now targets Java 8, making use of features that arrived with Java 8

Re: [Text][Lang] support for stringutils like methods with surrogate char strings?

2019-11-22 Thread Bruno P. Kinoshita
Hi Marshall, Not aware of variants supporting surrogate char strings. Some methods and classes that were more text-oriented from [lang] were moved to [text]. And some new code in [text] already supports surrogate characters (there's some support in CharSequenceTranslator, JavaUnicodeEscaper

[Text][Lang] support for stringutils like methods with surrogate char strings?

2019-11-22 Thread Marshall Schor
In looking at the code, it seems these are designed for strings not having surrogate characters. Is there a variant somewhere for these methods which work with strings having surrogate characters? If not, are there plans for this kind of thing in the near future? - Marshall Schor

[ANN] Apache Commons Lang 3.9 released

2019-04-15 Thread Rob Tompkins
The Apache Commons community is happy to announce the availability of Apache Commons Lang 3.9. Apache Commons Lang provides helper utilities for the java.lang API, notably String manipulation methods, basic numerical methods, object reflection, concurrency, creation and serialization and System

[ANNOUNCE] Apache Commons Lang 3.8.1 released!

2018-09-23 Thread Rob Tompkins
The Apache Commons community is happy to announce the availability of Apache Commons Lang 3.8.1. Apache Commons Lang provides helper utilities for the java.lang API, notably String manipulation methods, basic numerical methods, object reflection, concurrency, creation and serialization and System

[ANNOUNCE] Apache Commons Lang 3.8 released!

2018-08-20 Thread Rob Tompkins
The Apache Commons community is happy to announce the availability of Apache Commons Lang 3.8. Apache Commons Lang provides helper utilities for the java.lang API, notably String manipulation methods, basic numerical methods, object reflection, concurrency, creation and serialization and System

Re: commons-lang class JsonToStringStyle does not escape double quote in a string value

2018-05-09 Thread sebb
Ticket exists: https://issues.apache.org/jira/browse/LANG-1395 No patch as yet. On 9 May 2018 at 13:46, Martin Gainty <mgai...@hotmail.com> wrote: > can you submit a JIRA ticket with patch? > > > Martin > > > From: Jim Gan <j...@oat

Re: commons-lang class JsonToStringStyle does not escape double quote in a string value

2018-05-09 Thread Martin Gainty
can you submit a JIRA ticket with patch? Martin From: Jim Gan <j...@oath.com.INVALID> Sent: Tuesday, May 8, 2018 8:10 PM To: user@commons.apache.org Subject: commons-lang class JsonToStringStyle does not escape double quote in a string value If string

commons-lang class JsonToStringStyle does not escape double quote in a string value

2018-05-09 Thread Jim Gan
If string value contains double quote, JsonToStringStyle generates invalid json string. Here is the detail : The code at line 2609 needs to escape the double quote before appending it to the buffer. https://github.com/apache/commons-lang/blob/c614fbcc79615f93d2c60a153db6e82d7474c425/src

Re: [lang]

2017-11-13 Thread sebb
Thanks; fixed On 13 November 2017 at 14:11, i...@flyingfischer.ch <i...@flyingfischer.ch> wrote: > In case nobody has realized yet: > > The download links under > https://commons.apache.org/proper/commons-lang/download_lang.cgi are > broken since the release of Apa

[lang]

2017-11-13 Thread i...@flyingfischer.ch
In case nobody has realized yet: The download links under https://commons.apache.org/proper/commons-lang/download_lang.cgi are broken since the release of Apache commons-lang3-3.7. Markus - To unsubscribe, e-mail: user-unsubscr

[ANNOUNCEMENT] Apache Commons Lang 3.7

2017-11-08 Thread Gary Gregory
The Apache Commons community is happy to announce the availability of Apache Commons Lang 3.7. Apache Commons Lang provides helper utilities for the java.lang API, notably String manipulation methods, basic numerical methods, object reflection, concurrency, creation and serialization and System

[ANNOUNCE] Apache Commons Lang 3.6 released!

2017-06-14 Thread Benedikt Ritter
The Apache Commons community is happy to announce the availability of Apache Commons Lang 3.6. Apache Commons Lang provides helper utilities for the java.lang API, notably String manipulation methods, basic numerical methods, object reflection, concurrency, creation and serialization

Re: [LANG] Object Merge Functionality

2016-11-30 Thread Matt Benson
There should be multiple existing open source Java libraries to do this type of thing. Shameless* plug: one such is my own https://github.com/mbenson/therian . Agree this is out of scope for [lang] and that [beanutils] would be more appropriate. Matt * Maybe there was a little shame. On Nov 29

Re: [LANG] Object Merge Functionality

2016-11-29 Thread Matt Sicker
his feels out of scope to me. Nonetheless an interesting challenge. > > Gary > > On Tue, Nov 29, 2016 at 4:10 PM, Anthony Bonafide < > anthonymbonaf...@gmail.com> wrote: > > > Hello All, > > > > I was wondering if there is functionality within the co

Re: [LANG] Object Merge Functionality

2016-11-29 Thread Gary Gregory
This feels out of scope to me. Nonetheless an interesting challenge. Gary On Tue, Nov 29, 2016 at 4:10 PM, Anthony Bonafide < anthonymbonaf...@gmail.com> wrote: > Hello All, > > I was wondering if there is functionality within the commons-lang > library to merge t

[LANG] Object Merge Functionality

2016-11-29 Thread Anthony Bonafide
Hello All, I was wondering if there is functionality within the commons-lang library to merge two or more objects together. The desired functionality would be, given a source and target object copy all the fields from the source to the target where the destination’s fields are null

[ANNOUNCE] Apache Commons Lang 3.5 Released!

2016-10-19 Thread Benedikt Ritter
The Apache Commons community is happy to announce the availability of Apache Commons Lang 3.5. Apache Commons Lang provides helper utilities for the java.lang API, notably String manipulation methods, basic numerical methods, object reflection, concurrency, creation and serialization and System

Re: commons lang 3.5 - official release?

2016-09-02 Thread Gary Gregory
We do plan on releasing 3.5 but there is no ETA ATM. Gary On Fri, Sep 2, 2016 at 6:57 AM, Michael Knigge <michael.kni...@set.de> wrote: > Hi, > > is there a plan for an official 3.5 release of apache commons lang? 3.4 > was released over two years ago… > > thank

commons lang 3.5 - official release?

2016-09-02 Thread Michael Knigge
Hi, is there a plan for an official 3.5 release of apache commons lang? 3.4 was released over two years ago… thank you, Michael Mit freundlichen Grüßen Michael Knigge Software Engineer SET GmbH Lister Straße 15 30163 Hannover phone: +49 511 39780-23 fax: +49 511 39780-65 www.set.de

Re: Commons Lang substitution

2015-11-18 Thread Alex Soto
Thanks for your help but sadly doesn't work as expected. Look: Map map = new HashMap(); map.put("version", "1"); StrSubstitutor strSubstitutor = new StrSubstitutor(map, "$", "");

Re: Commons Lang substitution

2015-11-17 Thread Jörg Schaible
Alex Soto wrote: > Hi, thank you for your answers, Jörg I think that StrMatcher is for > implementing where you want to get information to be replaced on the > string, not for parsing issues. Instead of guessing, I'd rather have a look into the Javadocs of StrSubstitutor. Cheers, Jörg

Re: Commons Lang substitution

2015-11-17 Thread Alex Soto
Hi, thank you for your answers, Jörg I think that StrMatcher is for implementing where you want to get information to be replaced on the string, not for parsing issues. El dl., 16 nov. 2015 a les 21:38, Jörg Schaible () va escriure: > Benedikt Ritter wrote: > > > Hello, >

Re: Commons Lang substitution

2015-11-17 Thread Woonsan Ko
I think Jörg is right. You may change the suffix StrMather through #setVariableSuffixMatcher() on a StrSubstitutor. I haven't tried it, but it should be something like this example: final Map valueMap = ...; StrSubstitutor subst = new StrSubstitutor(valuesMap, "$", ""); //

Re: Commons Lang substitution

2015-11-16 Thread Benedikt Ritter
15 at 11:02 AM Alex Soto <asot...@gmail.com> wrote: > > > Hi I have two special requirements that I think that Common-Lang > > StrSubstitutor does not cover, but I would like to know if it is correct > or > > not. > > > > The first requirement is that I wou

Re: Commons Lang substitution

2015-11-16 Thread Jörg Schaible
Benedikt Ritter wrote: > Hello, > > 2015-11-14 22:25 GMT+01:00 Anthony Brice : > >> I could be wrong, but I do believe StrSubstitor requires a prefix and >> suffix. I don't think the class will replace variables that aren't in the >> map either, unless you write a

Commons Lang substitution

2015-11-14 Thread Alex Soto
Hi I have two special requirements that I think that Common-Lang StrSubstitutor does not cover, but I would like to know if it is correct or not. The first requirement is that I would like to know if there is a way to make StrSubstitutor works with using simple character as prefix and no suffix

Re: [lang] StringUtils.equals bug on non-Strings with identical leading prefix

2015-08-10 Thread sebb
a JIRA: https://issues.apache.org/jira/browse/LANG-1162 Note: if you find any other such issues, it would be very helpful if you could file a JIRA issue, as per http://commons.apache.org/proper/commons-lang/issue-tracking.html Thanks! Bug appears in default. - Aman

[lang] StringUtils.equals bug on non-Strings with identical leading prefix

2015-08-10 Thread Aman Agarwal
StringUtils.equals(cs1,cs2) delegates to CharSequence.regionMatches(...) in a way that causes IndexOutOfBounds when either of cs1/cs2 isn't a String. Specifically, comparing foo and foobar for non-String CharSequences bombs due to CharSequenceUtils.regionMatches(cs1, false, 0, cs2, 0,

Re: [lang] StrSubstitutor - a dollar sign before a variable

2015-07-23 Thread Woonsan Ko
to jump over the la…: // In org.apache.commons.lang3.text.StrSubstitutorTest.java locally // after cloning https://github.com/woonsan/commons-lang. @Test public void testReplaceEscapingDollarSign() { values.put(amount, 20.00); doTestReplace(The quick

Re: [lang] StrSubstitutor - a dollar sign before a variable

2015-07-23 Thread Anthony Brice
...ick brown fox paid $20.00 to jump over the la…: // In org.apache.commons.lang3.text.StrSubstitutorTest.java locally // after cloning https://github.com/woonsan/commons-lang. @Test public void testReplaceEscapingDollarSign() { values.put(amount

Re: [lang] StrSubstitutor - a dollar sign before a variable

2015-07-23 Thread Woonsan Ko
/commons-lang. @Test public void testReplaceEscapingDollarSign() { values.put(amount, 20.00); doTestReplace(The quick brown fox paid $20.00 to jump over the lazy dog., The ${animal} paid $$${amount} to jump over the ${target}., true); } (I put

Re: [lang] StrSubstitutor - a dollar sign before a variable

2015-07-23 Thread Woonsan Ko
.text.StrSubstitutorTest.java locally // after cloning https://github.com/woonsan/commons-lang. @Test public void testReplaceEscapingDollarSign() { values.put(amount, 20.00); doTestReplace(The quick brown fox paid $20.00 to jump over the lazy dog

Re: [lang] StrSubstitutor - a dollar sign before a variable

2015-07-23 Thread Woonsan Ko
// after cloning https://github.com/woonsan/commons-lang. @Test public void testReplaceEscapingDollarSign() { values.put(amount, 20.00); doTestReplace(The quick brown fox paid $20.00 to jump over the lazy dog., The ${animal} paid $$${amount

Re: [lang] StrSubstitutor - a dollar sign before a variable

2015-07-23 Thread Anthony Brice
.text.StrSubstitutorTest.java locally // after cloning https://github.com/woonsan/commons-lang. @Test public void testReplaceEscapingDollarSign() { values.put(amount, 20.00); doTestReplace(The quick brown fox paid $20.00 to jump over the lazy dog

Re: [lang] StrSubstitutor - a dollar sign before a variable

2015-07-23 Thread Jörg Schaible
Hi Woonsan, Woonsan Ko wrote: Hi there, I tried to use the following, expecting ...ick brown fox paid $20.00 to jump over the la…: // In org.apache.commons.lang3.text.StrSubstitutorTest.java locally // after cloning https://github.com/woonsan/commons-lang. @Test public

Re: [lang] StrSubstitutor - a dollar sign before a variable

2015-07-22 Thread Anthony Brice
at 2:50 PM, Woonsan Ko woon...@apache.org wrote: Hi there, I tried to use the following, expecting ...ick brown fox paid $20.00 to jump over the la…: // In org.apache.commons.lang3.text.StrSubstitutorTest.java locally // after cloning https://github.com/woonsan/commons-lang. @Test

[lang] StrSubstitutor - a dollar sign before a variable

2015-07-22 Thread Woonsan Ko
Hi there, I tried to use the following, expecting ...ick brown fox paid $20.00 to jump over the la…: // In org.apache.commons.lang3.text.StrSubstitutorTest.java locally // after cloning https://github.com/woonsan/commons-lang. @Test public void testReplaceEscapingDollarSign

[lang] StringEscapeUtils - from euro; to #8364;

2015-06-25 Thread Geraldo Netto
Dear All, Sorry for cross-posting between user/dev lists I'm trying to escape special chars using StringEscapeUtils And i would like to ask how can i change the escape format from html string code to html number code So: StringEscapeUtils.escapeHtml4(EURO_SIGN) is returning euro; But i would

Re: [lang] StringEscapeUtils - from euro; to #8364;

2015-06-25 Thread Geraldo Netto
Hi Paulo! :) Como vai? (I suppose you are brazilian as me based on your name :P) Thank you very much Sir for your suggestions :) I'll try it! Kind Regards, Geraldo Netto Sapere Aude = Non dvcor, dvco São Paulo, Brasil, -3gmt site: http://exdev.sf.net/ On 25 June 2015 at 19:33, Paulo Roberto

Re: [lang] StringEscapeUtils - from euro; to #8364;

2015-06-25 Thread Paulo Roberto Massa Cereda
Hello, Geraldo. :) I once had to achieve something similar, so I created a new CharSequenceTranslator aggregating my own lookup table and the original arrays of entities. I had something along these lines: --- private static final CharSequenceTranslator HTML4_EURO

[ANNOUNCE] Apache Commons Lang 3.4 released!

2015-04-07 Thread Benedikt Ritter
The Apache Commons Team is pleased to announce the release of Apache Commons Lang 3.4. Apache Commons Lang, a package of Java utility classes for the classes that are in java.lang's hierarchy, or are considered to be so standard as to justify existence in java.lang. 3.4 is binary compatible

Re: [lang] SystemUtils and Cygwin

2015-01-02 Thread Paulo Roberto Massa Cereda
:32 -0200 From: cereda.pa...@gmail.com To: user@commons.apache.org Subject: [lang] SystemUtils and Cygwin Dear friends, I have to execute a certain system command according to the underlying operating system; so far, SystemUtils works like a charm. But now I'm facing a quite peculiar situation: I'd

Re: [lang] SystemUtils and Cygwin

2015-01-02 Thread Paulo Roberto Massa Cereda
Hello, Jörg! Ah, thank you very much for the explanation. I now understand how a process works under Cygwin (to be honest, I was suspecting it was just a compatibility layer on top of a Windows runtime). Now I'm almost a 100% sure the problem relies solely on my end. :) But now I know how

RE: [lang] SystemUtils and Cygwin

2015-01-02 Thread Martin Gainty
Date: Fri, 2 Jan 2015 06:54:02 -0200 From: cereda.pa...@gmail.com To: user@commons.apache.org Subject: Re: [lang] SystemUtils and Cygwin Hello, Jörg! Ah, thank you very much for the explanation. I now understand how a process works under Cygwin (to be honest, I was suspecting

[lang] SystemUtils and Cygwin

2015-01-01 Thread Paulo Roberto Massa Cereda
Dear friends, I have to execute a certain system command according to the underlying operating system; so far, SystemUtils works like a charm. But now I'm facing a quite peculiar situation: I'd need to run a different code if my Java application is being invoked from a Cygwin session. I do

RE: [lang] SystemUtils and Cygwin

2015-01-01 Thread Martin Gainty
Date: Thu, 1 Jan 2015 20:34:32 -0200 From: cereda.pa...@gmail.com To: user@commons.apache.org Subject: [lang] SystemUtils and Cygwin Dear friends, I have to execute a certain system command according to the underlying operating system; so far, SystemUtils works like a charm. But now

Re: [lang] SystemUtils and Cygwin

2015-01-01 Thread Jörg Schaible
Hi Paulo, Paulo Roberto Massa Cereda wrote: Dear friends, I have to execute a certain system command according to the underlying operating system; so far, SystemUtils works like a charm. But now I'm facing a quite peculiar situation: I'd need to run a different code if my Java application

Re: [LANG] Feature request: Custom word boundary separators for WordUtils.wrap

2014-07-09 Thread Andrew Pennebaker
Thanks for the tip. I submitted a ticket there. https://issues.apache.org/jira/browse/LANG-1023 On Wed, Jul 9, 2014 at 12:45 AM, Benedikt Ritter brit...@apache.org wrote: Hello Andrew, we use jira for tracking new ideas / feature requests [1]. Chances that this will be implemented are even

[LANG] Feature request: Custom word boundary separators for WordUtils.wrap

2014-07-08 Thread Benedikt Ritter
Hello Andrew, we use jira for tracking new ideas / feature requests [1]. Chances that this will be implemented are even higher if you provide a patch with acompanying unit tests ;-) Currently I'm not sure whether this really belongs to lang. WordUtils is supposed as a utility for simple use

[ANNOUNCE] Apache Commons Lang 3.3.2 released!

2014-04-09 Thread Benedikt Ritter
The Apache Commons Team is pleased to announce the release of Apache Commons Lang 3.3.2. The Apache Commons Lang open source software library provides a host of helper utilities for the java.lang API, notably String manipulation methods, basic numerical methods, object reflection, concurrency

[ANNOUNCE] Apache Commons Lang 3.3.1 released!

2014-03-19 Thread Benedikt Ritter
The Apache Commons Team is pleased to announce the release of Apache Commons Lang 3.3.1. The Apache Commons Lang open source software library provides a host of helper utilities for the java.lang API, notably String manipulation methods, basic numerical methods, object reflection, concurrency

[ANNOUNCE] Apache Commons Lang 3.3 released!

2014-03-05 Thread Benedikt Ritter
The Apache Commons Team is pleased to announce the release of Apache Commons Lang 3.3. The Apache Commons Lang open source software library provides a host of helper utilities for the java.lang API, notably String manipulation methods, basic numerical methods, object reflection, concurrency

[ANNOUNCEMENT] Apache Commons Lang 3.2.1 released

2014-01-09 Thread Benedikt Ritter
The Apache Commons Team is pleased to announce the release of Apache Commons Lang 3.2.1. The Apache Commons Lang open source software library provides a host of helper utilities for the java.lang API, notably String manipulation methods, basic numerical methods, object reflection, concurrency

Re: commons-lang: WordUtils delimiters should be strings, not char varargs

2014-01-09 Thread Andrew Pennebaker
No problem! https://issues.apache.org/jira/browse/LANG-947 On Wed, Jan 8, 2014 at 3:56 PM, sebb seb...@gmail.com wrote: On 8 January 2014 20:01, Andrew Pennebaker apenneba...@42six.com wrote: Strings behave like char varargs of arbitrary length, but are much easier to use. Please could

commons-lang: WordUtils delimiters should be strings, not char varargs

2014-01-08 Thread Andrew Pennebaker
Strings behave like char varargs of arbitrary length, but are much easier to use. -- Cheers, Andrew Pennebaker apenneba...@42six.com

Re: commons-lang: WordUtils delimiters should be strings, not char varargs

2014-01-08 Thread sebb
On 8 January 2014 20:01, Andrew Pennebaker apenneba...@42six.com wrote: Strings behave like char varargs of arbitrary length, but are much easier to use. Please could you file a JIRA enhancement issue to make it easier to keep track of this suggestion? -- Cheers, Andrew Pennebaker

[lang] Broken Javadoc API links on website

2013-04-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 All, I was trying to view the Javadoc for commons-lang 2.4 and it looks like all the Javadoc links are broken on this page: http://commons.apache.org/proper/commons-lang/release-history.html For example, the 2.4 javadoc link from that page

Re: [lang] Broken Javadoc API links on website

2013-04-12 Thread sebb
Thanks, fixed. On 12 April 2013 17:45, Christopher Schultz ch...@christopherschultz.netwrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 All, I was trying to view the Javadoc for commons-lang 2.4 and it looks like all the Javadoc links are broken on this page: http

Re: [LANG] How to escape JSON data

2013-04-11 Thread Emmanuel Bourg
Le 11/04/2013 00:26, Daniel Pitts a écrit : Well, I'd be inclined to use the library written by the same people who maintain the spec: http://www.json.org/java/index.html If I'm not mistaken the shall be used for Good, not Evil clause is a field of use restriction, that's not an open source

RE: [LANG] How to escape JSON data

2013-04-11 Thread Martin Gainty
pouvons accepter aucune responsabilité pour le contenu fourni. Date: Thu, 11 Apr 2013 09:32:10 +0200 From: ebo...@apache.org To: user@commons.apache.org Subject: Re: [LANG] How to escape JSON data Le 11/04/2013 00:26, Daniel Pitts a écrit : Well, I'd be inclined to use the library

Re: [LANG] How to escape JSON data

2013-04-11 Thread Christian Grobmeier
); } } It works pretty well for me. Note, I am using it actually with Struts 2, I created a simple JSON plugin in the same repos. If its of use, I am willing to contribute everything to whereever it makes sense Cheers Christian [1] https://issues.apache.org/jira/browse/LANG-797 [2] http

Re: [LANG] How to escape JSON data

2013-04-11 Thread Maurizio Cucchiara
Hi Christian, according with json spec [1], you should also escape solidus char (slash for friends :) ) (even if there are many other libraries which ignore it). Anyway, have you already taken a look at LANG-797 [2] PS: This discussion should be moved to the Dev List. [1] http://goo.gl/EXRqX [2

Re: [LANG] How to escape JSON data

2013-04-11 Thread Christian Grobmeier
sent a slash with json, so it didn't pop up. That said I will move on to escapeJavaScript now, which I actually missed. Anyway, have you already taken a look at LANG-797 [2 Looks good at first glance - what prevents you to commit it? PS: This discussion should be moved to the Dev List

Re: [LANG] How to escape JSON data

2013-04-11 Thread Maurizio Cucchiara
that it escapes the apostrophe, and this will likely harm your app. Looks good at first glance - what prevents you to commit it? Lang is not my territory, I have been waiting for other comments. Anyway, you are right, I'm going to commit the patch ASAP

Re: [LANG] How to escape JSON data

2013-04-11 Thread Christian Grobmeier
it? Lang is not my territory, I have been waiting for other comments. Anyway, you are right, I'm going to commit the patch ASAP. CTR :-) - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail

Re: [LANG] How to escape JSON data

2013-04-10 Thread Gary Gregory
Note that json.org is a spec, not an implementation. Gary On Wed, Apr 10, 2013 at 2:13 PM, Daniel Pitts coloraura@gmail.comwrote: Do you mean a common way or the Commons way. json.org is pretty much canonical when it comes to JSON encoding. How much more common do you need? I realize

Re: [LANG] How to escape JSON data

2013-04-10 Thread Maurizio Cucchiara
, just for json escaping, seems excessive to me. 3. Last but not least there is already an open issue [1], and FYI I have already submitted a patch. [1] https://issues.apache.org/jira/browse/LANG-797 [2] http://commons.apache.org/proper/commons-lang//apidocs/org/apache/commons/lang3

Re: [lang] MessageFormat by key

2012-12-05 Thread Diego Rivera
Try StrSubstitutor in commons.lang -- Diego Rivera On Dec 5, 2012 11:02 AM, Ivan Diana iwo.di...@gmail.com wrote: there is a method to make a message format without position but only with key? now, with java native MessageFormat like this missage from {0} would like me like this missage

Re: [lang] commons-lang 3.1 and commons-configuration

2012-08-11 Thread Oliver Heger
to be compatible with commons-lang 3.1? We want to be able to use some of the new features of commons-lang (like generic support) but commons-configuration still uses the old commons-lang. The end result is, if we use the latest versions of both libraries, we end up pulling into 2 different versions

Re: [lang] commons-lang 3.1 and commons-configuration

2012-08-10 Thread Tom Weissinger
: Hi Tom, Am 07.08.2012 22:21, schrieb Tom Weissinger: Hi, What is the timeline for commons-configuration to be compatible with commons-lang 3.1? We want to be able to use some of the new features of commons-lang (like generic support) but commons-configuration still uses the old commons

Re: [lang] commons-lang 3.1 and commons-configuration

2012-08-08 Thread Oliver Heger
Hi Tom, Am 07.08.2012 22:21, schrieb Tom Weissinger: Hi, What is the timeline for commons-configuration to be compatible with commons-lang 3.1? We want to be able to use some of the new features of commons-lang (like generic support) but commons-configuration still uses the old commons-lang

[lang]

2012-07-21 Thread Guilherme Melo
Hello All, I have been running some Tests with HashCodeBuilder.reflectionHashCode, and the outputted results are inconsistent with those generated by classical implementations, i.e. eclipse's auto-generate and custom code following the descriptions in Effective Java book. Below is a very simple

[configuration] Common-configuration is not compatible with apache-lang-3.X

2011-12-08 Thread Ivan Boelle
Hello, We recently upgraded our apache-common-lang library from 2.4 to 3. But some classes of apache-common-configuration rely on classes that are not part of apache-common-lang anymore. (ConfigurationException depends on NestableException for example) - http://commons.apache.org/lang/article3_0

Re: [configuration] Common-configuration is not compatible with apache-lang-3.X

2011-12-08 Thread Jörg Schaible
Hi Ivan, Ivan Boelle wrote: Hello, We recently upgraded our apache-common-lang library from 2.4 to 3. But some classes of apache-common-configuration rely on classes that are not part of apache-common-lang anymore. c-lang and c-lang3 are designed to be used side-by-side, since

[ANNOUNCE] Apache Commons Lang 3.1 released

2011-11-15 Thread Henri Yandell
The Apache Commons team is pleased to announce the release of Commons Lang 3.1. This is a drop-in replacement for 3.0 and 3.0.1. A list of the 8 changes and 5 bug fixes in this release are found in the release notes: https://commons.apache.org/lang/changes-report.html#a3.1 For general

[lang] Dev support for LANG-378 new ToStyle to support MultiLine with Indent

2011-08-23 Thread Barrie Treloar
Hi, I'm looking for someone to help me with getting LANG-378 new ToStyle to support MultiLine with Indent committed. I think I have addressed all the comments about fitting into the framework properly. There are unit tests, etc as well. I'm willing to spend more time polishing it if someone can

Re: [lang] Dev support for LANG-378 new ToStyle to support MultiLine with Indent

2011-08-23 Thread Henri Yandell
Noting for the user list's sake that I've switched this thread over to the dev list. Hen On Mon, Aug 22, 2011 at 11:39 PM, Barrie Treloar baerr...@gmail.com wrote: Hi, I'm looking for someone to help me with getting LANG-378 new ToStyle to support MultiLine with Indent committed. I think I

RE: [lang] java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils Exception

2011-08-11 Thread Gary Gregory
Please see https://commons.apache.org/lang/article3_0.html Gary -Original Message- From: Emi Lu [mailto:em...@encs.concordia.ca] Sent: Thursday, August 11, 2011 9:47 AM To: user@commons.apache.org Subject: [lang] java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils

Re: [lang] java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils Exception

2011-08-11 Thread Emi Lu
Hi Gary, https://commons.apache.org/lang/article3_0.html It clearly shows lang - lang3. But could you tell me which jar cause the dependence exception please? Is it org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)? Or struts2, or xwork? I

RE: [lang] java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils Exception

2011-08-11 Thread Gary Gregory
: Re: [lang] java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils Exception Emi, I think you need both lang jars in your classpath Cheers Christian On Thu, Aug 11, 2011 at 4:25 PM, Emi Lu em...@encs.concordia.ca wrote: Hi Gary, https://commons.apache.org/lang/article3_0.html

Re: [lang] java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils Exception

2011-08-11 Thread Henri Yandell
- From: Christian Grobmeier [mailto:grobme...@gmail.com] Sent: Thursday, August 11, 2011 10:28 AM To: Commons Users List; em...@encs.concordia.ca Subject: Re: [lang] java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils Exception Emi, I think you need both lang jars

[ANNOUNCE] Apache Commons Lang 3.0.1 released

2011-08-10 Thread Henri Yandell
The Apache Commons team is pleased to announce the release of Commons Lang 3.0.1. As the version suggests, this is a drop-in replacement for 3.0. A list of the 9 changes and 6 bug fixes in this release are found in the release notes: https://commons.apache.org/lang/changes-report.html#a3.0.1

RE: [lang] Advise needed for broken reflectionEquals in WebLogic 10.3.5

2011-07-28 Thread Cancrinus, Bas
the simplicity and elegance of reflectionEquals, so I hope that we can work this out. Cheers, Bas -Oorspronkelijk bericht- Van: paulus.benedic...@gmail.com [mailto:paulus.benedic...@gmail.com] Namens Paul Benedict Verzonden: woensdag 27 juli 2011 20:52 Aan: Commons Users List Onderwerp: Re: [lang

Re: [lang] Advise needed for broken reflectionEquals in WebLogic 10.3.5

2011-07-28 Thread James Carman
- Van: paulus.benedic...@gmail.com [mailto:paulus.benedic...@gmail.com] Namens Paul Benedict Verzonden: woensdag 27 juli 2011 20:52 Aan: Commons Users List Onderwerp: Re: [lang] Advise needed for broken reflectionEquals in WebLogic 10.3.5 +1 to that idea. On Wed, Jul 27, 2011 at 12:25 PM

RE: [lang] Advise needed for broken reflectionEquals in WebLogic 10.3.5

2011-07-28 Thread Cancrinus, Bas
bericht- Van: jcar...@carmanconsulting.com [mailto:jcar...@carmanconsulting.com] Namens James Carman Verzonden: donderdag 28 juli 2011 12:37 Aan: Commons Users List Onderwerp: Re: [lang] Advise needed for broken reflectionEquals in WebLogic 10.3.5 If you're going to be enumerating the fields

[lang] Advise needed for broken reflectionEquals in WebLogic 10.3.5

2011-07-27 Thread Cancrinus, Bas
I'm currently migrating an EAR from WebLogic 10.3.3 to 10.3.5. While testing I noticed that the following invocation returned false while I expected true (lang 2.5): EqualsBuilder.reflectionEquals(Object lhs, Object rhs, String[] excludeFields) I noticed in my debugger that my domain classes

Re: [lang] Advise needed for broken reflectionEquals in WebLogic 10.3.5

2011-07-27 Thread Paul Benedict
WebLogic 10.3.3 to 10.3.5. While testing I noticed that the following invocation returned false while I expected true (lang 2.5): EqualsBuilder.reflectionEquals(Object lhs, Object rhs, String[] excludeFields) I noticed in my debugger that my domain classes were extended by the WebLogic JPA

RE: [lang] Advise needed for broken reflectionEquals in WebLogic 10.3.5

2011-07-27 Thread Gary Gregory
13:15 PM To: Commons Users List Subject: Re: [lang] Advise needed for broken reflectionEquals in WebLogic 10.3.5 ReflectionEquals uses actual fields, not methods, to build the string output. The underscore is actually a known convention by some Java programmers (I don't subscribe

  1   2   >