Skip to content

Commit

Permalink
Merge branch 'java-11-compatibility' of github.com:rjust/defects4j in…
Browse files Browse the repository at this point in the history
…to java-11-compatibility
  • Loading branch information
rjust committed Sep 10, 2024
2 parents 44fd72a + 30f9a95 commit d44d169
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 130 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## mockito: 30f (3c924f80a4db3692a13341f0da4517052ab77a2a) ##
--- org.mockitousage.basicapi.MocksSerializationTest::shouldSerializeRealPartialMock
java.io.InvalidClassException: org.mockito.internal.matchers.Any$$EnhancerByMockitoWithCGLIB$$8720308e; no valid constructor
java.io.InvalidClassException: org.mockito.internal.matchers.Any$$EnhancerByMockitoWithCGLIB$$a1cd11fc; no valid constructor
at java.base/java.io.ObjectStreamClass$ExceptionInfo.newInvalidClassException(ObjectStreamClass.java:159)
at java.base/java.io.ObjectStreamClass.checkDeserialize(ObjectStreamClass.java:875)
at java.base/java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2170)
Expand Down Expand Up @@ -52,7 +52,7 @@ java.io.InvalidClassException: org.mockito.internal.matchers.Any$$EnhancerByMock
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
--- org.mockitousage.basicapi.MocksSerializationTest::shouldSerializeObjectMock
java.io.InvalidClassException: org.mockito.internal.matchers.Any$$EnhancerByMockitoWithCGLIB$$871f3c51; no valid constructor
java.io.InvalidClassException: org.mockito.internal.matchers.Any$$EnhancerByMockitoWithCGLIB$$a1cc1dbf; no valid constructor
at java.base/java.io.ObjectStreamClass$ExceptionInfo.newInvalidClassException(ObjectStreamClass.java:159)
at java.base/java.io.ObjectStreamClass.checkDeserialize(ObjectStreamClass.java:875)
at java.base/java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2170)
Expand Down Expand Up @@ -103,66 +103,3 @@ java.io.InvalidClassException: org.mockito.internal.matchers.Any$$EnhancerByMock
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
--- org.mockitousage.bugs.ShouldMocksCompareToBeConsistentWithEqualsTest::shouldAllowStubbingAndVerifyingCompareTo
Argument(s) are different! Wanted:
date.compareTo(Mon Sep 09 17:23:06 PDT 2024);
-> at org.mockitousage.bugs.ShouldMocksCompareToBeConsistentWithEqualsTest.shouldAllowStubbingAndVerifyingCompareTo(ShouldMocksCompareToBeConsistentWithEqualsTest.java:47)
Actual invocation has different arguments:
date.compareTo(Mon Sep 09 17:23:06 PDT 2024);
-> at org.mockitousage.bugs.ShouldMocksCompareToBeConsistentWithEqualsTest.shouldAllowStubbingAndVerifyingCompareTo(ShouldMocksCompareToBeConsistentWithEqualsTest.java:43)

at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at org.mockito.exceptions.verification.junit.JUnitTool.createArgumentsAreDifferentException(JUnitTool.java:29)
at org.mockito.exceptions.Reporter.argumentsAreDifferent(Reporter.java:237)
at org.mockito.internal.verification.checkers.MissingInvocationChecker.check(MissingInvocationChecker.java:39)
at org.mockito.internal.verification.AtLeast.verify(AtLeast.java:37)
at org.mockito.internal.verification.MockAwareVerificationMode.verify(MockAwareVerificationMode.java:21)
at org.mockito.internal.MockHandler.handle(MockHandler.java:80)
at org.mockito.internal.creation.MethodInterceptorFilter.intercept(MethodInterceptorFilter.java:47)
at $java.util.Date$$EnhancerByMockitoWithCGLIB$$a1202e92.compareTo(<generated>)
at org.mockitousage.bugs.ShouldMocksCompareToBeConsistentWithEqualsTest.shouldAllowStubbingAndVerifyingCompareTo(ShouldMocksCompareToBeConsistentWithEqualsTest.java:47)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:38)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:520)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeInVM(JUnitTask.java:1492)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeTests(JUnitTask.java:878)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeOrQueue(JUnitTask.java:1980)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeTests(JUnitTask.java:830)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:2287)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:392)
at org.apache.tools.ant.Target.performTasks(Target.java:413)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.Main.runBuild(Main.java:811)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## mockito: 31f (62b6bdf44baeee172b2b1684835fb995bad2a47d) ##
--- org.mockitousage.basicapi.MocksSerializationTest::shouldSerializeRealPartialMock
java.io.InvalidClassException: org.mockito.internal.matchers.Any$$EnhancerByMockitoWithCGLIB$$3bd5d6b0; no valid constructor
java.io.InvalidClassException: org.mockito.internal.matchers.Any$$EnhancerByMockitoWithCGLIB$$63537a32; no valid constructor
at java.base/java.io.ObjectStreamClass$ExceptionInfo.newInvalidClassException(ObjectStreamClass.java:159)
at java.base/java.io.ObjectStreamClass.checkDeserialize(ObjectStreamClass.java:875)
at java.base/java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2170)
Expand Down Expand Up @@ -52,7 +52,7 @@ java.io.InvalidClassException: org.mockito.internal.matchers.Any$$EnhancerByMock
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
--- org.mockitousage.basicapi.MocksSerializationTest::shouldSerializeObjectMock
java.io.InvalidClassException: org.mockito.internal.matchers.Any$$EnhancerByMockitoWithCGLIB$$3bd4e273; no valid constructor
java.io.InvalidClassException: org.mockito.internal.matchers.Any$$EnhancerByMockitoWithCGLIB$$635285f5; no valid constructor
at java.base/java.io.ObjectStreamClass$ExceptionInfo.newInvalidClassException(ObjectStreamClass.java:159)
at java.base/java.io.ObjectStreamClass.checkDeserialize(ObjectStreamClass.java:875)
at java.base/java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2170)
Expand Down Expand Up @@ -103,66 +103,3 @@ java.io.InvalidClassException: org.mockito.internal.matchers.Any$$EnhancerByMock
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
--- org.mockitousage.bugs.ShouldMocksCompareToBeConsistentWithEqualsTest::shouldAllowStubbingAndVerifyingCompareTo
Argument(s) are different! Wanted:
date.compareTo(Mon Sep 09 17:23:34 PDT 2024);
-> at org.mockitousage.bugs.ShouldMocksCompareToBeConsistentWithEqualsTest.shouldAllowStubbingAndVerifyingCompareTo(ShouldMocksCompareToBeConsistentWithEqualsTest.java:47)
Actual invocation has different arguments:
date.compareTo(Mon Sep 09 17:23:34 PDT 2024);
-> at org.mockitousage.bugs.ShouldMocksCompareToBeConsistentWithEqualsTest.shouldAllowStubbingAndVerifyingCompareTo(ShouldMocksCompareToBeConsistentWithEqualsTest.java:43)

at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at org.mockito.exceptions.verification.junit.JUnitTool.createArgumentsAreDifferentException(JUnitTool.java:29)
at org.mockito.exceptions.Reporter.argumentsAreDifferent(Reporter.java:237)
at org.mockito.internal.verification.checkers.MissingInvocationChecker.check(MissingInvocationChecker.java:39)
at org.mockito.internal.verification.AtLeast.verify(AtLeast.java:37)
at org.mockito.internal.verification.MockAwareVerificationMode.verify(MockAwareVerificationMode.java:21)
at org.mockito.internal.MockHandler.handle(MockHandler.java:80)
at org.mockito.internal.creation.MethodInterceptorFilter.intercept(MethodInterceptorFilter.java:47)
at $java.util.Date$$EnhancerByMockitoWithCGLIB$$5df63ac9.compareTo(<generated>)
at org.mockitousage.bugs.ShouldMocksCompareToBeConsistentWithEqualsTest.shouldAllowStubbingAndVerifyingCompareTo(ShouldMocksCompareToBeConsistentWithEqualsTest.java:47)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:38)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:520)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeInVM(JUnitTask.java:1492)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeTests(JUnitTask.java:878)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeOrQueue(JUnitTask.java:1980)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeTests(JUnitTask.java:830)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:2287)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:392)
at org.apache.tools.ant.Target.performTasks(Target.java:413)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.Main.runBuild(Main.java:811)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
1 change: 1 addition & 0 deletions framework/projects/Mockito/random_tests
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@
--- org.mockitousage.verification.VerificationWithTimeoutTest::shouldAllowMixingOtherModesWithTimeoutAndFail
--- org.mockitousage.verification.VerificationWithTimeoutTest::shouldFailVerificationWithTimeout
--- org.mockitousage.verification.VerificationWithTimeoutTest::shouldVerifyWithTimeout
--- org.mockitousage.bugs.ShouldMocksCompareToBeConsistentWithEqualsTest::shouldAllowStubbingAndVerifyingCompareTo

0 comments on commit d44d169

Please sign in to comment.