Re: [lang] Usage statistics

2010-08-08 Thread Henri Yandell
Not a lot - the best stat I know of is: https://www.osscensus.org/packages-rank-public.php It places Lang at 11th at 50% of surveyed machines. More popular than activation.jar or junit.jar :) [Or samba, openoffice, openssl etc, and with just a little more work we could eclipse Eclipse]. I'm not

Re: [lang] Usage statistics

2010-08-08 Thread Stefan Bodewig
On 2010-08-07, Oliver Heger wrote: For instance, are there statistics about downloads from the Maven central repository or something like that? Since mvn itself and lots of the mvn plugins use commons-lang such a statistic would only tell you how many people use mvn and not whether the

Re: [compress] Snapshot for 1.1 using Nexus

2010-08-08 Thread Christian Grobmeier
Does it distribute the artifacts to the dist folders also? Unfortunately not. Nexus currently only handles Maven artifacts. http://markmail.org/message/wmhm556j56757xt3#query:%22[Nexus]%20Only%20for%20Maven%20snapshots%20%2F%20releases%22+page:1+mid:wmhm556j56757xt3+state:results thanks for

Re: LogFactory.getLog()

2010-08-08 Thread sebb
On 7 August 2010 06:00, James Carman ja...@carmanconsulting.com wrote: Attachments don't come through.  File a JIRA +1 - please On Fri, Aug 6, 2010 at 10:11 PM, Doug Bateman d...@dougbateman.net wrote: Dear Commons Developers, Here's a suggestion for the commons-logging package...

Re: [scxml-eclipse] User Feedback

2010-08-08 Thread Jacob Beard
I just had the opportunity to install scxml-eclipse and try it out, and I wanted to say that I agree with Chris's comments. 1 and 3, especially, are in my opinion showstoppers bugs that prevent the tool from being generally useful. I hope these can be resolved, because overall, everything else

Re: svn commit: r983137 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/ArrayUtils.java

2010-08-08 Thread sebb
On 6 August 2010 23:44, jcar...@apache.org wrote: Author: jcarman Date: Fri Aug  6 22:44:38 2010 New Revision: 983137 URL: http://svn.apache.org/viewvc?rev=983137view=rev Log: Generifying toMap() method (adding in possibility for type inference on return type). Modified:    

Re: svn commit: r983219 - /commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/StringUtilsTest.java

2010-08-08 Thread sebb
On 7 August 2010 13:04, jcar...@apache.org wrote: Author: jcarman Date: Sat Aug  7 12:04:46 2010 New Revision: 983219 URL: http://svn.apache.org/viewvc?rev=983219view=rev Log: Some code clean-up.  Removing unnecessary boxing, array creation for varargs, etc. Modified:    

Re: svn commit: r981442 - in /commons/proper/fileupload/trunk: .project src/java/org/apache/commons/fileupload/InvalidFileNameException.java

2010-08-08 Thread sebb
On 2 August 2010 11:08, joc...@apache.org wrote: Author: jochen Date: Mon Aug  2 10:08:42 2010 New Revision: 981442 URL: http://svn.apache.org/viewvc?rev=981442view=rev Log: EOL fixes Modified:    commons/proper/fileupload/trunk/.project Generally not a good idea to include Eclipse

Re: svn commit: r980669 - in /commons/proper/fileupload/trunk: .classpath pom.xml src/changes/changes.xml src/site/xdoc/download_fileupload.xml

2010-08-08 Thread sebb
On 30 July 2010 08:39, joc...@apache.org wrote: Author: jochen Date: Fri Jul 30 07:39:09 2010 New Revision: 980669 URL: http://svn.apache.org/viewvc?rev=980669view=rev Log: Publishing site for 1.2.2 Modified:    commons/proper/fileupload/trunk/.classpath Generally a bad idea to include

Re: svn commit: r979842 - /commons/proper/proxy/branches/version-2.0-work/core/pom.xml

2010-08-08 Thread sebb
On 27 July 2010 21:21, mben...@apache.org wrote: Author: mbenson Date: Tue Jul 27 20:21:24 2010 New Revision: 979842 URL: http://svn.apache.org/viewvc?rev=979842view=rev Log: mark lang3 as non-optional until/unless I can figure out how to make a dependency required-for-test (transitive),

Re: LogFactory.getLog()

2010-08-08 Thread Doug Bateman
Here's the JIRA issue. Sebb, you're right, it seems the Thread.getStackTrace() is Java 1.5, while Throwable.getStackTrace() is Java 1.4. I probably should use the Throwable.getStackTrace() instead. I had started there, which is where the Java 1.4 assumption came from. On Sun, Aug 8, 2010 at

[g...@vmgump]: Project commons-javaflow (in module commons-sandbox) failed

2010-08-08 Thread Gump
To whom it may engage... This is an automated request, but not an unsolicited one. For more information please visit http://gump.apache.org/nagged.html, and/or contact the folk at gene...@gump.apache.org. Project commons-javaflow has an issue affecting its community integration. This

Re: svn commit: r983219 - /commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/StringUtilsTest.java

2010-08-08 Thread James Carman
On Sun, Aug 8, 2010 at 1:39 PM, sebb seb...@gmail.com wrote: +        assertFalse(StringUtils.startsWithAny(abcxyz, null, xyz, abcd)); Most of the above changes seem wrong to me, as they change what is being tested. By all means add tests for varargs, but surely the array tests need to

Re: svn commit: r983137 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/ArrayUtils.java

2010-08-08 Thread James Carman
On Sun, Aug 8, 2010 at 1:25 PM, sebb seb...@gmail.com wrote: As it stands, the code allows calls of the form: MapInteger,Integer map = ArrayUtils.toMap(new String[][] {{foo, bar}, {hello, world}}); without complaining. Failing to check the types of the array entries on creation means that

Re: svn commit: r983137 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/ArrayUtils.java

2010-08-08 Thread James Carman
On Sun, Aug 8, 2010 at 1:25 PM, sebb seb...@gmail.com wrote: Why is it safe to suppress warnings? If it is really necessary, please document why it is safe, e.g. as is done in ArrayUtils.addAll() It's safe because the code is making the assumption that the user isn't trying to do something

Re: svn commit: r983219 - /commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/StringUtilsTest.java

2010-08-08 Thread James Carman
On Sun, Aug 8, 2010 at 1:39 PM, sebb seb...@gmail.com wrote: StringUtils.length() is now deprecated, and is replaced by CharSequenceUtils.length(), but surely the deprecated methods should still be tested? The deprecation warnings can be suppressed. When the deprecated method is deleted, the

Re: [lang] Usage statistics

2010-08-08 Thread Oliver Heger
Am 08.08.2010 09:47, schrieb Henri Yandell: Not a lot - the best stat I know of is: https://www.osscensus.org/packages-rank-public.php It places Lang at 11th at 50% of surveyed machines. More popular than activation.jar or junit.jar :) [Or samba, openoffice, openssl etc, and with just a little

Re: [compress] Snapshot for 1.1 using Nexus

2010-08-08 Thread Dennis Lundberg
On 2010-08-08 13:38, Christian Grobmeier wrote: Does it distribute the artifacts to the dist folders also? Unfortunately not. Nexus currently only handles Maven artifacts.

Re: svn commit: r983219 - /commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/StringUtilsTest.java

2010-08-08 Thread James Carman
To make sure I'm actually passing in the exact same values (by letting the compiler create the arrays using the varargs feature) I added the following output to the startsWithAny() method: System.out.println(startsWithAny(): Received + string + input with + (searchStrings == null ? null :

Re: LogFactory.getLog()

2010-08-08 Thread Doug Bateman
https://issues.apache.org/jira/secure/ManageAttachments.jspa?id=12471073 On Sun, Aug 8, 2010 at 11:58 AM, Doug Bateman d...@dougbateman.net wrote: Here's the JIRA issue. Sebb, you're right, it seems the Thread.getStackTrace() is Java 1.5, while Throwable.getStackTrace() is Java 1.4. I

Re: LogFactory.getLog()

2010-08-08 Thread Doug Bateman
It just isn't my day. It's rainy here. Here we go: https://issues.apache.org/jira/browse/LOGGING-137 On Sun, Aug 8, 2010 at 3:56 PM, Doug Bateman d...@dougbateman.net wrote: https://issues.apache.org/jira/secure/ManageAttachments.jspa?id=12471073 On Sun, Aug 8, 2010 at 11:58 AM, Doug

[lang] CharSequenceUtils

2010-08-08 Thread Henri Yandell
So I'm wondering if this should exist, or if it should stay in StringUtils. Personally I think String is a good colloquialism for CharSequence and we don't need to create a new class. i.e. StringUtils.length(CharSequence) == good. Hen

Re: [lang] CharSequenceUtils

2010-08-08 Thread James Carman
+1. I'm good with that. I think that's where most people would tend to look. I would doubt if most folks even know that the CharSequence interface exists. On Sun, Aug 8, 2010 at 7:33 PM, Henri Yandell flame...@gmail.com wrote: So I'm wondering if this should exist, or if it should stay in

Re: [scxml-eclipse] User Feedback

2010-08-08 Thread Xun Long Gui
I do not think we can create a transition without a target, target is a necessary element for a transition. To feature 1 and 3 in Chris's commends, we can achieve them, not a big thing. What do you mean about showstoppers bug ? 在 2010年8月8日 下午9:05,Jacob Beard jbea...@cs.mcgill.ca写道: I just had

Re: [scxml-eclipse] User Feedback

2010-08-08 Thread Jacob Beard
Hi, Long, Replies below: On 10-08-08 09:06 PM, Xun Long Gui wrote: I do not think we can create a transition without a target, target is a necessary element for a transition. The spec says that the target attribute on transition is not required. In that case, I think the semantics are

Re: svn commit: r983137 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/ArrayUtils.java

2010-08-08 Thread sebb
On 8 August 2010 21:30, James Carman ja...@carmanconsulting.com wrote: On Sun, Aug 8, 2010 at 1:25 PM, sebb seb...@gmail.com wrote: Why is it safe to suppress warnings? If it is really necessary, please document why it is safe, e.g. as is done in ArrayUtils.addAll() It's safe because the

Re: svn commit: r983137 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/ArrayUtils.java

2010-08-08 Thread sebb
On 8 August 2010 21:28, James Carman ja...@carmanconsulting.com wrote: On Sun, Aug 8, 2010 at 1:25 PM, sebb seb...@gmail.com wrote: As it stands, the code allows calls of the form: MapInteger,Integer map = ArrayUtils.toMap(new String[][] {{foo, bar}, {hello, world}}); without complaining.

Re: [scxml-eclipse] User Feedback

2010-08-08 Thread Xun Long Gui
Hi Jake, Thanks for your reply. It seems that we should re-define transition EMF data model for this tool, rebuild the tool from the base. I will read SCXML transition specification carefully and carry on the rebuild job 在 2010年8月9日 上午9:22,Jacob Beard jbea...@cs.mcgill.ca写道: Hi, Long, Replies

Re: svn commit: r983219 - /commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/StringUtilsTest.java

2010-08-08 Thread sebb
On 8 August 2010 22:34, James Carman ja...@carmanconsulting.com wrote: To make sure I'm actually passing in the exact same values (by letting the compiler create the arrays using the varargs feature) I added the following output to the startsWithAny() method:

Re: svn commit: r983219 - /commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/StringUtilsTest.java

2010-08-08 Thread James Carman
On Sun, Aug 8, 2010 at 10:51 PM, sebb seb...@gmail.com wrote: Although the compiler changes varargs into String[] arrays, the two tests are not equivalent. Using varargs exclusively can hide bugs. For example, method(String, String[]) is not the same as method(String ...). We're talking

Re: [scxml-eclipse] User Feedback

2010-08-08 Thread Jacob Beard
Hi Long, I should mention that I had missed this part of the specification as well, and I only recently discovered it while trying to determine how best to express static reactions with SCXML. I'm currently updating scxml-js to support this. Jake On 10-08-08 10:12 PM, Xun Long Gui wrote: Hi

Re: svn commit: r983219 - /commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/StringUtilsTest.java

2010-08-08 Thread sebb
On 9 August 2010 04:08, James Carman ja...@carmanconsulting.com wrote: On Sun, Aug 8, 2010 at 10:51 PM, sebb seb...@gmail.com wrote: Although the compiler changes varargs into String[] arrays, the two tests are not equivalent. Using varargs exclusively can hide bugs. For example,

Re: svn commit: r983137 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/ArrayUtils.java

2010-08-08 Thread James Carman
On Sun, Aug 8, 2010 at 10:04 PM, sebb seb...@gmail.com wrote: Yes. But the current change makes it harder to find errors. Previously, the compiler would warn about unsafe casts; with the current implementation the warnings are suppressed. IMO this is a retrograde step. I expect generic

Re: svn commit: r983219 - /commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/StringUtilsTest.java

2010-08-08 Thread James Carman
On Sun, Aug 8, 2010 at 11:39 PM, sebb seb...@gmail.com wrote: IMO the tests are now less stringent, e.g. they no longer distinguish leading string parameters from varargs when calling StringUtils.startsWithAny. And, neither would the user's code. We're using the code exactly as the user

[Commons Wiki] Update of UsingNexus by ChristianGrobm eier

2010-08-08 Thread Apache Wiki
Dear Wiki user, You have subscribed to a wiki page or wiki category on Commons Wiki for change notification. The UsingNexus page has been changed by ChristianGrobmeier. The comment on this change is: switches from manual tagging to release:prepare.