You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Gump <is...@commons.apache.org> on 2011/06/06 10:24:36 UTC

[GUMP@vmgump]: Project commons-lang3 (in module apache-commons) failed

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 general@gump.apache.org.

Project commons-lang3 has an issue affecting its community integration.
This issue affects 1 projects.
The current state of this project is 'Failed', with reason 'Build Failed'.
For reference only, the following projects are affected by this:
    - commons-lang3 :  utilities for the classes that are in java.lang's hierarchy


Full details are available at:
    http://vmgump.apache.org/gump/public/apache-commons/commons-lang3/index.html

That said, some information snippets are provided here.

The following annotations (debug/informational/warning/error messages) were provided:
 -DEBUG- Sole jar output [commons-lang3-*[0-9T].jar] identifier set to project name
 -DEBUG- (Apache Gump generated) Apache Maven Settings in: /srv/gump/public/workspace/apache-commons/lang/gump_mvn_settings.xml
 -INFO- Failed with reason build failed
 -DEBUG- Maven POM in: /srv/gump/public/workspace/apache-commons/lang/pom.xml
 -DEBUG- Extracted fallback artifacts from Gump Repository



The following work was performed:
http://vmgump.apache.org/gump/public/apache-commons/commons-lang3/gump_work/build_apache-commons_commons-lang3.html
Work Name: build_apache-commons_commons-lang3 (Type: Build)
Work ended in a state of : Failed
Elapsed: 46 secs
Command Line: /opt/maven2/bin/mvn --batch-mode --settings /srv/gump/public/workspace/apache-commons/lang/gump_mvn_settings.xml package 
[Working Directory: /srv/gump/public/workspace/apache-commons/lang]
M2_HOME: /opt/maven2
---------------------------------------------
Running org.apache.commons.lang3.text.translate.UnicodeUnescaperTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
Running org.apache.commons.lang3.text.translate.EntityArraysTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running org.apache.commons.lang3.text.translate.LookupTranslatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running org.apache.commons.lang3.text.ExtendedMessageFormatTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.281 sec
Running org.apache.commons.lang3.text.StrSubstitutorTest
Tests run: 36, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.033 sec
Running org.apache.commons.lang3.text.CompositeFormatTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011 sec
Running org.apache.commons.lang3.text.StrTokenizerTest
Tests run: 55, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.035 sec
Running org.apache.commons.lang3.text.StrBuilderTest
Tests run: 77, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.053 sec
Running org.apache.commons.lang3.text.FormattableUtilsTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
Running org.apache.commons.lang3.StringUtilsStartsEndsWithTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec
Running org.apache.commons.lang3.RandomStringUtilsTest
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.128 sec
Running org.apache.commons.lang3.StringUtilsTest
Tests run: 81, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.46 sec <<< FAILURE!

Results :

Failed tests: 
  test_isAssignable_ClassArray_ClassArray(org.apache.commons.lang3.ClassUtilsTest): null
  testPrimitivesToWrappers(org.apache.commons.lang3.ClassUtilsTest): null -> null
  testWrappersToPrimitivesNull(org.apache.commons.lang3.ClassUtilsTest): Wrong result for null input
  testToClass_object(org.apache.commons.lang3.ClassUtilsTest): Expected: <null> but was: [Ljava.lang.Class;@6f7cf6b6
  testStripAll(org.apache.commons.lang3.StringUtilsTrimEmptyTest): expected:<null> but was:<[L...@61f1680f>
  testJoin_Objectarray(org.apache.commons.lang3.StringUtilsTest): null expected:<null> but was:<>

Tests run: 1873, Failures: 6, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.

Please refer to /srv/gump/public/workspace/apache-commons/lang/target/surefire-reports for the individual test results.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 45 seconds
[INFO] Finished at: Mon Jun 06 08:24:35 UTC 2011
[INFO] Final Memory: 35M/92M
[INFO] ------------------------------------------------------------------------
---------------------------------------------

To subscribe to this information via syndicated feeds:
- RSS: http://vmgump.apache.org/gump/public/apache-commons/commons-lang3/rss.xml
- Atom: http://vmgump.apache.org/gump/public/apache-commons/commons-lang3/atom.xml

============================== Gump Tracking Only ===
Produced by Apache Gump(TM) version 2.3.
Gump Run 06000606062011, vmgump.apache.org:vmgump:06000606062011
Gump E-mail Identifier (unique within run) #14.

--
Apache Gump
http://gump.apache.org/ [Instance: vmgump]

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: [GUMP@vmgump]: Project commons-lang3 (in module apache-commons) failed

Posted by sebb <se...@gmail.com>.
On 6 June 2011 22:47, Jörg Schaible <jo...@gmx.de> wrote:
> sebb wrote:
>
>> On 6 June 2011 09:24, Gump <is...@commons.apache.org> wrote:
>>> 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 general@gump.apache.org.
>>>
>>> Project commons-lang3 has an issue affecting its community integration.
>>> This issue affects 1 projects.
>>> The current state of this project is 'Failed', with reason 'Build
>>> Failed'. For reference only, the following projects are affected by this:
>>> - commons-lang3 :  utilities for the classes that are in java.lang's
>>> hierarchy
>>
>> Oops - that was caused by my fixes for the Eclipse warnings about
>> varargs invocatiions.
>> Only the (Class<?>[]) casts work. I'll fix up the errors shortly.
>
> You could have done this:
>
> ================= %< ================
> -        assertNull("null -> null",
> ClassUtils.primitivesToWrappers((Class<?>[]) null)); // test both types of
> ...
> -        assertNull("null -> null",
> ClassUtils.primitivesToWrappers((Class<?>) null));   // ... varargs
> invocation
> +        assertNull("null -> null", ClassUtils.primitivesToWrappers());

Fails, see below.

> +        assertNull("null -> null",
> ClassUtils.primitivesToWrappers((Class<?>[]) null)); // explicit cast to
> avoid warning

I was trying to fix the warning generated by the following code:

assertNull("null -> null", ClassUtils.primitivesToWrappers(null));

i.e.

"The argument of type null should explicitly be cast to Class<?>[] for
the invocation of the varargs method primitivesToWrappers(Class<?>...)
from type ClassUtils. It could alternatively be cast to Class<?> for a
varargs invocation"

There are several ways to call the varargs method with a null parameter:

1) ClassUtils.primitivesToWrappers(null); // generates the warning
2) ClassUtils.primitivesToWrappers((Class<?>[]) null);
3) ClassUtils.primitivesToWrappers((Class<?>) null);
4) ClassUtils.primitivesToWrappers(); // no parameter

1) and 2) both result in passing a null parameter to the method, so
that is why I eventually chose to replace 1) by 2)

3) is equivalent to

ClassUtils.primitivesToWrappers(new Class<?>[]{null}); // i.e array
length 1 containing null

4) is equivalent to

ClassUtils.primitivesToWrappers(new Class<?>[0]); // empty array
or equally
ClassUtils.primitivesToWrappers(new Class<?>[]{}); // empty array

AFAICT, neither of these are currently tested; they probably should be.

Now the Javadoc says that an empty array is returned as an empty
array, so the following fails:

assertNull("null -> null", ClassUtils.primitivesToWrappers());

The following succeeds:

assertTrue("empty -> empty",
Arrays.equals(ArrayUtils.EMPTY_CLASS_ARRAY,
ClassUtils.primitivesToWrappers()));

> ================= %< ================
>
> - Jörg
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: [GUMP@vmgump]: Project commons-lang3 (in module apache-commons) failed

Posted by Jörg Schaible <jo...@gmx.de>.
sebb wrote:

> On 6 June 2011 09:24, Gump <is...@commons.apache.org> wrote:
>> 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 general@gump.apache.org.
>>
>> Project commons-lang3 has an issue affecting its community integration.
>> This issue affects 1 projects.
>> The current state of this project is 'Failed', with reason 'Build
>> Failed'. For reference only, the following projects are affected by this:
>> - commons-lang3 :  utilities for the classes that are in java.lang's
>> hierarchy
> 
> Oops - that was caused by my fixes for the Eclipse warnings about
> varargs invocatiions.
> Only the (Class<?>[]) casts work. I'll fix up the errors shortly.

You could have done this:

================= %< ================
-        assertNull("null -> null", 
ClassUtils.primitivesToWrappers((Class<?>[]) null)); // test both types of 
...
-        assertNull("null -> null", 
ClassUtils.primitivesToWrappers((Class<?>) null));   // ... varargs 
invocation
+        assertNull("null -> null", ClassUtils.primitivesToWrappers());
+        assertNull("null -> null", 
ClassUtils.primitivesToWrappers((Class<?>[]) null)); // explicit cast to 
avoid warning
================= %< ================

- Jörg


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: [GUMP@vmgump]: Project commons-lang3 (in module apache-commons) failed

Posted by sebb <se...@gmail.com>.
On 6 June 2011 09:24, Gump <is...@commons.apache.org> wrote:
> 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 general@gump.apache.org.
>
> Project commons-lang3 has an issue affecting its community integration.
> This issue affects 1 projects.
> The current state of this project is 'Failed', with reason 'Build Failed'.
> For reference only, the following projects are affected by this:
>    - commons-lang3 :  utilities for the classes that are in java.lang's hierarchy

Oops - that was caused by my fixes for the Eclipse warnings about
varargs invocatiions.
Only the (Class<?>[]) casts work. I'll fix up the errors shortly.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org