Repository navigation
Closed
Labels
Milestone
Description
Sam Brannen opened SPR-12582 and commented
After upgrading the JDK to version 8u40 Build b19 (i.e., jdk-8u40-ea-bin-b19-macosx-x86_64-16_dec_2014.dmg on a Mac), the ExtendedBeanInfoTests.cornerSpr8937() test fails with the following stack trace:
java.lang.AssertionError:
Expected: is <false>
but: was <true>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
at org.junit.Assert.assertThat(Assert.java:956)
at org.junit.Assert.assertThat(Assert.java:923)
at org.springframework.beans.ExtendedBeanInfoTests.cornerSpr8937(ExtendedBeanInfoTests.java:847)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
Note: this test passed against JDK 8u40 Build b11 (i.e., installed via jdk-8u40-ea-bin-b11-macosx-x86_64-21_oct_2014.dmg on a Mac).
Affects: 4.1.4
Issue Links:
- java.beans.IntrospectionException: type mismatch between indexed and non-indexed methods: <method_name> [SPR-8937] #13577 java.beans.IntrospectionException: type mismatch between indexed and non-indexed methods: <method_name>
- General compatibility with JDK 8u40 [SPR-12585] #17186 General compatibility with JDK 8u40
Activity
spring-projects-issues commentedon Dec 31, 2014
Juergen Hoeller commented
I recently noticed the same failure on a recent JDK 9 build. This seems to be a correction of standard JavaBeans Introspector behavior, where our tests explicitly expect the old behavior. In any case, if this will be in JDK 8u40, I'll accelerate a revision of those tests.
Juergen
spring-projects-issues commentedon Dec 31, 2014
Sam Brannen commented
Sounds good.
Do you mind if I check in my local version (see below) in the interim so that we can build against the latest JDK 8 builds?
spring-projects-issues commentedon Jan 2, 2015
Juergen Hoeller commented
I've revised that test to verify that
ExtendedBeanInfobehaves exactly the same as the native JDKBeanInfo, which was the original purpose of that test anyway. If the JDKIntrospectorchanges its default behavior there, we don't need to correct it but rather just to preserve it inExtendedBeanInfo.Juergen
spring-projects-issues commentedon Jan 2, 2015
Sam Brannen commented
Very pragmatic and much more robust.
Thanks