Just out of curiosity ;) Are there plans to do anything about that? I
guess it would be desirable if the component compiles on Java 7 as well.
I still don't know if things are broken when compiling with Java 7 or if
the errors are just caused by API changes in Java 7. If the latter, we
could use JUnit's Theories runner and write an assumeTrue() statement
for those test cases, that checks what Java version the test is running
with.
Regards,
Benedikt
Am 03.03.2012 20:05, schrieb Gary Gregory:
You're right! The build is OK with Java 6, but not 7.
Thank you!
Gary
On Sat, Mar 3, 2012 at 1:42 PM, Benedikt Ritter<b...@systemoutprintln.de>wrote:
Hi Gary,
that somehow reminds of a problem we had in BeanUtils2 (see
http://markmail.org/thread/**obtmhywxxeo2ykp7<http://markmail.org/thread/obtmhywxxeo2ykp7>).
Some tests were failing with my configuration, while they passed on Simos
machine. The problem was, that I'm using Java 7 and that seems to cause
problems with reflective operations on arrays.
I would suggest that you at first make sure, that maven and eclipse are
using the same Java version. And that can be a bit tricky, if m2e mixes
some addition spice into you dev-setup-soup. There are several
configurations that come into play:
- the jre eclipse is startet with
- the jdk the workspace uses as default
- the jdk maven uses
- the jdk m2e starts maven with
HTH,
Benedikt
Am 03.03.2012 19:33, schrieb Gary Gregory:
Hi All:
Odd: These pass in Eclipse but fail from Maven...
Failed tests:
testReflectionFloatArrayArray(**org.apache.commons.lang3.**
builder.ToStringBuilderTest)
testReflectionDoubleArrayArray**(org.apache.commons.lang3.**
builder.ToStringBuilderTest)
testReflectionBooleanArrayArra**y(org.apache.commons.lang3.**
builder.ToStringBuilderTest)
testReflectionHierarchyArrayLi**st(org.apache.commons.lang3.**
builder.ToStringBuilderTest)
testReflectionArrayCycleLevel2**(org.apache.commons.lang3.**
builder.ToStringBuilderTest)
testReflectionArrayArrayCycle(**org.apache.commons.lang3.**
builder.ToStringBuilderTest)
testSimpleReflectionObjectCycl**e(org.apache.commons.lang3.**
builder.ToStringBuilderTest)
testSelfInstanceVarReflectionO**bjectCycle(org.apache.commons.**
lang3.builder.**ToStringBuilderTest)
testSelfInstanceTwoVarsReflect**ionObjectCycle(org.apache.**
commons.lang3.builder.**ToStringBuilderTest)
testReflectionArrayAndObjectCy**cle(org.apache.commons.lang3.**
builder.ToStringBuilderTest)
------------------------------**------------------------------**---------
To unsubscribe, e-mail:
dev-unsubscribe@commons.**apache.org<dev-unsubscr...@commons.apache.org>
For additional commands, e-mail: dev-h...@commons.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org