From e3620350715dfe43d13eb7a996ee551b90485729 Mon Sep 17 00:00:00 2001 From: alexander-yevsyukov Date: Sat, 14 Dec 2024 16:12:14 +0000 Subject: [PATCH 01/16] Bump version -> `2.0.0-SNAPSHOT.191` --- version.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.gradle.kts b/version.gradle.kts index 5d592965f0..1fc30bad3a 100644 --- a/version.gradle.kts +++ b/version.gradle.kts @@ -29,4 +29,4 @@ * * For versions of Spine-based dependencies, please see [io.spine.dependency.local.Spine]. */ -val versionToPublish: String by extra("2.0.0-SNAPSHOT.190") +val versionToPublish: String by extra("2.0.0-SNAPSHOT.191") From 7f4918b9b39a6abf15729764304d0944698e8eab Mon Sep 17 00:00:00 2001 From: alexander-yevsyukov Date: Sat, 14 Dec 2024 16:12:58 +0000 Subject: [PATCH 02/16] Update dependency reports --- dependencies.md | 24 ++++++++++++------------ pom.xml | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/dependencies.md b/dependencies.md index 93e7de672e..813cf759c6 100644 --- a/dependencies.md +++ b/dependencies.md @@ -1,6 +1,6 @@ -# Dependencies of `io.spine:spine-client:2.0.0-SNAPSHOT.190` +# Dependencies of `io.spine:spine-client:2.0.0-SNAPSHOT.191` ## Runtime 1. **Group** : com.google.android. **Name** : annotations. **Version** : 4.1.1.4. @@ -846,12 +846,12 @@ The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Fri Dec 13 20:09:56 WET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). +This report was generated on **Sat Dec 14 16:12:10 WET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). -# Dependencies of `io.spine:spine-core:2.0.0-SNAPSHOT.190` +# Dependencies of `io.spine:spine-core:2.0.0-SNAPSHOT.191` ## Runtime 1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2. @@ -1649,12 +1649,12 @@ This report was generated on **Fri Dec 13 20:09:56 WET 2024** using [Gradle-Lice The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Fri Dec 13 20:09:56 WET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). +This report was generated on **Sat Dec 14 16:12:11 WET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). -# Dependencies of `io.spine:spine-server:2.0.0-SNAPSHOT.190` +# Dependencies of `io.spine:spine-server:2.0.0-SNAPSHOT.191` ## Runtime 1. **Group** : com.google.android. **Name** : annotations. **Version** : 4.1.1.4. @@ -2508,12 +2508,12 @@ This report was generated on **Fri Dec 13 20:09:56 WET 2024** using [Gradle-Lice The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Fri Dec 13 20:09:57 WET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). +This report was generated on **Sat Dec 14 16:12:11 WET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). -# Dependencies of `io.spine.tools:spine-testutil-client:2.0.0-SNAPSHOT.190` +# Dependencies of `io.spine.tools:spine-testutil-client:2.0.0-SNAPSHOT.191` ## Runtime 1. **Group** : com.google.android. **Name** : annotations. **Version** : 4.1.1.4. @@ -3482,12 +3482,12 @@ This report was generated on **Fri Dec 13 20:09:57 WET 2024** using [Gradle-Lice The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Fri Dec 13 20:09:57 WET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). +This report was generated on **Sat Dec 14 16:12:11 WET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). -# Dependencies of `io.spine.tools:spine-testutil-core:2.0.0-SNAPSHOT.190` +# Dependencies of `io.spine.tools:spine-testutil-core:2.0.0-SNAPSHOT.191` ## Runtime 1. **Group** : com.google.android. **Name** : annotations. **Version** : 4.1.1.4. @@ -4456,12 +4456,12 @@ This report was generated on **Fri Dec 13 20:09:57 WET 2024** using [Gradle-Lice The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Fri Dec 13 20:09:58 WET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). +This report was generated on **Sat Dec 14 16:12:12 WET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). -# Dependencies of `io.spine.tools:spine-testutil-server:2.0.0-SNAPSHOT.190` +# Dependencies of `io.spine.tools:spine-testutil-server:2.0.0-SNAPSHOT.191` ## Runtime 1. **Group** : com.google.android. **Name** : annotations. **Version** : 4.1.1.4. @@ -5478,4 +5478,4 @@ This report was generated on **Fri Dec 13 20:09:58 WET 2024** using [Gradle-Lice The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Fri Dec 13 20:09:58 WET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). \ No newline at end of file +This report was generated on **Sat Dec 14 16:12:12 WET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). \ No newline at end of file diff --git a/pom.xml b/pom.xml index 0282ed67ea..65e07e44db 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ all modules and does not describe the project structure per-subproject. --> io.spine spine-core-java -2.0.0-SNAPSHOT.190 +2.0.0-SNAPSHOT.191 2015 From 810a203cd3818758a72eb2d744204d6f7d11d61a Mon Sep 17 00:00:00 2001 From: alexander-yevsyukov Date: Sat, 14 Dec 2024 16:13:22 +0000 Subject: [PATCH 03/16] Do not log thrown `Error` --- server/src/main/java/io/spine/server/bus/Bus.java | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/server/src/main/java/io/spine/server/bus/Bus.java b/server/src/main/java/io/spine/server/bus/Bus.java index bd2e6e8f12..ea3fb5ac51 100644 --- a/server/src/main/java/io/spine/server/bus/Bus.java +++ b/server/src/main/java/io/spine/server/bus/Bus.java @@ -348,13 +348,21 @@ private Optional filter(E message) { * *

This method assumes that the given message has passed the filtering. * - * @see #post(Signal, StreamObserver) for the public API + * @see #post(Signal, StreamObserver) the public API for posting */ protected abstract void dispatch(E envelope); /** * Posts each of the given envelopes into the bus and notifies the given observer. * + *

If {@link #dispatch(SignalEnvelope) dispatching} throws an {@link Error} it is rethrown. + * Other types of exceptions are logged and then rethrown. + * + *

We treat {@link Error}s differently and want to void much of console output + * for this special case of exceptions. + * Please see {@link io.spine.server.model.AbstractReceptor#invoke(Object, MessageEnvelope)} + * for more details on special treatment of {@link Error} during dispatching. + * * @param envelopes * the envelopes to post * @param observer @@ -370,7 +378,10 @@ private void doPost(Iterable envelopes, StreamObserver observer) { onDispatchingStarted(signalId); try { dispatch(envelope); - } catch (Throwable t) { + } catch (Error e) { + throw e; + } + catch (Throwable t) { logger().atError().withCause(t).log(() -> format( "Unable to dispatch `%s` with ID `%s`.", envelope.messageClass(), From 7efd1588912a960c9cbb5b175e3254fab99697c4 Mon Sep 17 00:00:00 2001 From: alexander-yevsyukov Date: Sat, 14 Dec 2024 16:17:54 +0000 Subject: [PATCH 04/16] Fix code formatting --- server/src/main/java/io/spine/server/bus/Bus.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/src/main/java/io/spine/server/bus/Bus.java b/server/src/main/java/io/spine/server/bus/Bus.java index ea3fb5ac51..12ce3a0ad6 100644 --- a/server/src/main/java/io/spine/server/bus/Bus.java +++ b/server/src/main/java/io/spine/server/bus/Bus.java @@ -380,8 +380,7 @@ private void doPost(Iterable envelopes, StreamObserver observer) { dispatch(envelope); } catch (Error e) { throw e; - } - catch (Throwable t) { + } catch (Throwable t) { logger().atError().withCause(t).log(() -> format( "Unable to dispatch `%s` with ID `%s`.", envelope.messageClass(), From d668752eaec2b23dd2834004c8f8ba72c5e55632 Mon Sep 17 00:00:00 2001 From: Alexander Yevsyukov Date: Sat, 14 Dec 2024 21:28:19 +0000 Subject: [PATCH 05/16] Bump Base -> `2.0.0-SNAPSHOT.232` --- buildSrc/src/main/kotlin/io/spine/dependency/local/Base.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildSrc/src/main/kotlin/io/spine/dependency/local/Base.kt b/buildSrc/src/main/kotlin/io/spine/dependency/local/Base.kt index 3d6f52a4ab..5808c01260 100644 --- a/buildSrc/src/main/kotlin/io/spine/dependency/local/Base.kt +++ b/buildSrc/src/main/kotlin/io/spine/dependency/local/Base.kt @@ -33,8 +33,8 @@ package io.spine.dependency.local */ @Suppress("ConstPropertyName") object Base { - const val version = "2.0.0-SNAPSHOT.231" - const val versionForBuildScript = "2.0.0-SNAPSHOT.231" + const val version = "2.0.0-SNAPSHOT.232" + const val versionForBuildScript = "2.0.0-SNAPSHOT.232" const val group = Spine.group const val artifact = "spine-base" const val lib = "$group:$artifact:$version" From 82b5e2b71d0e5a7d862ee5cfe87d144849df1f51 Mon Sep 17 00:00:00 2001 From: Alexander Yevsyukov Date: Sat, 14 Dec 2024 21:28:45 +0000 Subject: [PATCH 06/16] Deal with `Mistake` instead of `Error` --- server/src/main/java/io/spine/server/bus/Bus.java | 11 ++++++----- .../io/spine/server/model/AbstractReceptor.java | 13 +++++++------ 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/server/src/main/java/io/spine/server/bus/Bus.java b/server/src/main/java/io/spine/server/bus/Bus.java index 12ce3a0ad6..0a35ee1c56 100644 --- a/server/src/main/java/io/spine/server/bus/Bus.java +++ b/server/src/main/java/io/spine/server/bus/Bus.java @@ -1,11 +1,11 @@ /* - * Copyright 2023, TeamDev. All rights reserved. + * Copyright 2024, TeamDev. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Redistribution and use in source and/or binary forms, with or without * modification, must retain the above copyright notice and the following @@ -32,6 +32,7 @@ import com.google.protobuf.Message; import io.grpc.stub.StreamObserver; import io.spine.annotation.Internal; +import io.spine.base.Mistake; import io.spine.core.Ack; import io.spine.core.Signal; import io.spine.core.SignalId; @@ -355,7 +356,7 @@ private Optional filter(E message) { /** * Posts each of the given envelopes into the bus and notifies the given observer. * - *

If {@link #dispatch(SignalEnvelope) dispatching} throws an {@link Error} it is rethrown. + *

If {@link #dispatch(SignalEnvelope) dispatching} throws a {@link Mistake} it is rethrown. * Other types of exceptions are logged and then rethrown. * *

We treat {@link Error}s differently and want to void much of console output @@ -378,8 +379,8 @@ private void doPost(Iterable envelopes, StreamObserver observer) { onDispatchingStarted(signalId); try { dispatch(envelope); - } catch (Error e) { - throw e; + } catch (Mistake m) { + throw m; } catch (Throwable t) { logger().atError().withCause(t).log(() -> format( "Unable to dispatch `%s` with ID `%s`.", diff --git a/server/src/main/java/io/spine/server/model/AbstractReceptor.java b/server/src/main/java/io/spine/server/model/AbstractReceptor.java index 9af8d51f24..1eddd997a8 100644 --- a/server/src/main/java/io/spine/server/model/AbstractReceptor.java +++ b/server/src/main/java/io/spine/server/model/AbstractReceptor.java @@ -30,6 +30,7 @@ import com.google.errorprone.annotations.Immutable; import com.google.errorprone.annotations.OverridingMethodsMustInvokeSuper; import com.google.protobuf.Message; +import io.spine.base.Mistake; import io.spine.base.RejectionThrowable; import io.spine.core.Signal; import io.spine.server.dispatch.DispatchOutcome; @@ -272,8 +273,8 @@ private static ImmutableSet> discoverAttributes(Method method) { /** * Feeds the given {@code envelope} to the given {@code target} and returns the outcome. * - *

If the target method throws {@link java.lang.Error} dispatching terminates with - * rethrowing the error. + *

If the target method throws {@link Mistake}, dispatching terminates with + * rethrowing it. * *

Other types of exceptions are converted to {@link io.spine.base.Error} and returned * {@link DispatchOutcome.Builder#setError inside} the {@link DispatchOutcome}. @@ -285,8 +286,8 @@ private static ImmutableSet> discoverAttributes(Method method) { */ @SuppressWarnings({ "ChainOfInstanceofChecks" /* We need to separate exceptions. */, - "ThrowInsideCatchBlockWhichIgnoresCaughtException", "ProhibitedExceptionThrown" - /* Rethrowing `Error`. See Javadoc. */ + "ThrowInsideCatchBlockWhichIgnoresCaughtException", + /* Rethrowing `Mistake`. See Javadoc. */ }) @Override public DispatchOutcome invoke(T target, E envelope) { @@ -312,8 +313,8 @@ public DispatchOutcome invoke(T target, E envelope) { } catch (InvocationTargetException e) { var cause = e.getCause(); checkNotNull(cause); - if (cause instanceof Error) { - throw (Error) cause; + if (cause instanceof Mistake) { + throw (Mistake) cause; } else if (cause instanceof RejectionThrowable) { var success = asRejection(target, envelope, (RejectionThrowable) cause); outcome.setSuccess(success); From 5706bb58a48fec7959f6db6d3ba5882443e968ec Mon Sep 17 00:00:00 2001 From: Alexander Yevsyukov Date: Sat, 14 Dec 2024 21:40:00 +0000 Subject: [PATCH 07/16] Address deprecation --- build.gradle.kts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 147b4adb6c..0db2c35f99 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -30,11 +30,12 @@ import Build_gradle.Subproject import io.spine.dependency.build.ErrorProne import io.spine.dependency.lib.Grpc import io.spine.dependency.lib.Guava -import io.spine.dependency.test.JUnit import io.spine.dependency.lib.Kotlin -import io.spine.dependency.local.Spine import io.spine.dependency.local.Logging +import io.spine.dependency.local.Spine +import io.spine.dependency.local.TestLib import io.spine.dependency.local.Validation +import io.spine.dependency.test.JUnit import io.spine.gradle.VersionWriter import io.spine.gradle.checkstyle.CheckStyleConfig import io.spine.gradle.github.pages.updateGitHubPages @@ -251,7 +252,7 @@ fun Subproject.defineDependencies() { implementation(Validation.runtime) testImplementation(JUnit.runner) - testImplementation(Spine.testlib) + testImplementation(TestLib.lib) } } From 003f76cadd35b0241aba62b1a1b2e8524fcd2dd4 Mon Sep 17 00:00:00 2001 From: Alexander Yevsyukov Date: Sat, 14 Dec 2024 21:40:11 +0000 Subject: [PATCH 08/16] Deal with `Mistake` instead of `Error` --- .../server/model/AbstractReceptorSpec.kt | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/server/src/test/kotlin/io/spine/server/model/AbstractReceptorSpec.kt b/server/src/test/kotlin/io/spine/server/model/AbstractReceptorSpec.kt index c8138f7746..8d018f8483 100644 --- a/server/src/test/kotlin/io/spine/server/model/AbstractReceptorSpec.kt +++ b/server/src/test/kotlin/io/spine/server/model/AbstractReceptorSpec.kt @@ -32,6 +32,7 @@ import io.kotest.matchers.shouldBe import io.kotest.matchers.shouldNotBe import io.spine.base.EventMessage import io.spine.base.Identifier +import io.spine.base.Mistake import io.spine.core.Event import io.spine.core.Subscribe import io.spine.protobuf.AnyPacker @@ -216,17 +217,17 @@ internal class AbstractReceptorSpec { } @Nested inner class - `propagate instances of 'Error'` { + `propagate instances of 'Mistake'` { private val signature = SubscriberSignature(); @Test - fun `if a target throws 'java_lang_Error'`() { - val receptor = signature.classify(ErrorThrowingHandler.method("throwingError")) + fun `if a target throws 'Mistake'`() { + val receptor = signature.classify(MistakenHandler.method("throwingMistake")) receptor.shouldBePresent() val envelope = envelope(projectCreated()) assertThrows { - receptor.get().invoke(ErrorThrowingHandler(), envelope) + receptor.get().invoke(MistakenHandler(), envelope) } } @@ -238,21 +239,24 @@ internal class AbstractReceptorSpec { /** * A subscriber which throws [java.lang.Error] and [kotlin.Error] in the receptors. */ -private class ErrorThrowingHandler : EventSubscriber { +private class MistakenHandler : EventSubscriber { companion object { fun method(name: String): Method { - return ModelTests.getMethod(ErrorThrowingHandler::class.java, name) + return ModelTests.getMethod(MistakenHandler::class.java, name) } } @Subscribe @Suppress("TooGenericExceptionThrown", "UNUSED_PARAMETER") - fun throwingError(e: RefProjectCreated) { - throw Error("Throwing `java.lang.Error`.") + fun throwingMistake(e: RefProjectCreated) { + throw StubMistake() } } +@Suppress("serial") // No need for the tests. +private class StubMistake: Mistake() + private fun envelope(eventMessage: EventMessage): EventEnvelope { val factory = TestEventFactory.newInstance(AbstractReceptorSpec::class.java) val event = factory.createEvent(eventMessage) From d2060ce889582155d00d4e267395e58145e66c90 Mon Sep 17 00:00:00 2001 From: Alexander Yevsyukov Date: Sat, 14 Dec 2024 22:00:59 +0000 Subject: [PATCH 09/16] Update dependency reports --- dependencies.md | 24 ++++++++++++------------ pom.xml | 28 +++++++++++++++++++++++++++- 2 files changed, 39 insertions(+), 13 deletions(-) diff --git a/dependencies.md b/dependencies.md index 813cf759c6..ddcd85f690 100644 --- a/dependencies.md +++ b/dependencies.md @@ -1,6 +1,6 @@ -# Dependencies of `io.spine:spine-client:2.0.0-SNAPSHOT.191` +# Dependencies of `io.spine:spine-client:2.0.0-SNAPSHOT.190` ## Runtime 1. **Group** : com.google.android. **Name** : annotations. **Version** : 4.1.1.4. @@ -846,12 +846,12 @@ The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Sat Dec 14 16:12:10 WET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). +This report was generated on **Sat Dec 14 21:15:51 WET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). -# Dependencies of `io.spine:spine-core:2.0.0-SNAPSHOT.191` +# Dependencies of `io.spine:spine-core:2.0.0-SNAPSHOT.190` ## Runtime 1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2. @@ -1649,12 +1649,12 @@ This report was generated on **Sat Dec 14 16:12:10 WET 2024** using [Gradle-Lice The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Sat Dec 14 16:12:11 WET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). +This report was generated on **Sat Dec 14 21:15:52 WET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). -# Dependencies of `io.spine:spine-server:2.0.0-SNAPSHOT.191` +# Dependencies of `io.spine:spine-server:2.0.0-SNAPSHOT.190` ## Runtime 1. **Group** : com.google.android. **Name** : annotations. **Version** : 4.1.1.4. @@ -2508,12 +2508,12 @@ This report was generated on **Sat Dec 14 16:12:11 WET 2024** using [Gradle-Lice The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Sat Dec 14 16:12:11 WET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). +This report was generated on **Sat Dec 14 21:15:52 WET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). -# Dependencies of `io.spine.tools:spine-testutil-client:2.0.0-SNAPSHOT.191` +# Dependencies of `io.spine.tools:spine-testutil-client:2.0.0-SNAPSHOT.190` ## Runtime 1. **Group** : com.google.android. **Name** : annotations. **Version** : 4.1.1.4. @@ -3482,12 +3482,12 @@ This report was generated on **Sat Dec 14 16:12:11 WET 2024** using [Gradle-Lice The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Sat Dec 14 16:12:11 WET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). +This report was generated on **Sat Dec 14 21:15:54 WET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). -# Dependencies of `io.spine.tools:spine-testutil-core:2.0.0-SNAPSHOT.191` +# Dependencies of `io.spine.tools:spine-testutil-core:2.0.0-SNAPSHOT.190` ## Runtime 1. **Group** : com.google.android. **Name** : annotations. **Version** : 4.1.1.4. @@ -4456,12 +4456,12 @@ This report was generated on **Sat Dec 14 16:12:11 WET 2024** using [Gradle-Lice The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Sat Dec 14 16:12:12 WET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). +This report was generated on **Sat Dec 14 21:15:54 WET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). -# Dependencies of `io.spine.tools:spine-testutil-server:2.0.0-SNAPSHOT.191` +# Dependencies of `io.spine.tools:spine-testutil-server:2.0.0-SNAPSHOT.190` ## Runtime 1. **Group** : com.google.android. **Name** : annotations. **Version** : 4.1.1.4. @@ -5478,4 +5478,4 @@ This report was generated on **Sat Dec 14 16:12:12 WET 2024** using [Gradle-Lice The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Sat Dec 14 16:12:12 WET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). \ No newline at end of file +This report was generated on **Sat Dec 14 21:15:55 WET 2024** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). \ No newline at end of file diff --git a/pom.xml b/pom.xml index 65e07e44db..c105c5a3bc 100644 --- a/pom.xml +++ b/pom.xml @@ -1,4 +1,30 @@ + + 4.0.0 io.spine spine-core-java -2.0.0-SNAPSHOT.191 +2.0.0-SNAPSHOT.190 2015 From 614d01e6bfd988f0ddb1a94a808cc875e51a2c68 Mon Sep 17 00:00:00 2001 From: Alexander Yevsyukov Date: Sat, 14 Dec 2024 22:10:24 +0000 Subject: [PATCH 10/16] Fix check for the thrown exception --- .../test/kotlin/io/spine/server/model/AbstractReceptorSpec.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/test/kotlin/io/spine/server/model/AbstractReceptorSpec.kt b/server/src/test/kotlin/io/spine/server/model/AbstractReceptorSpec.kt index 8d018f8483..3cd66d1270 100644 --- a/server/src/test/kotlin/io/spine/server/model/AbstractReceptorSpec.kt +++ b/server/src/test/kotlin/io/spine/server/model/AbstractReceptorSpec.kt @@ -226,7 +226,7 @@ internal class AbstractReceptorSpec { val receptor = signature.classify(MistakenHandler.method("throwingMistake")) receptor.shouldBePresent() val envelope = envelope(projectCreated()) - assertThrows { + assertThrows { receptor.get().invoke(MistakenHandler(), envelope) } } From 2ed2bec2982f7b41b52905868b8f476a7dddb3b0 Mon Sep 17 00:00:00 2001 From: Alexander Yevsyukov Date: Sat, 14 Dec 2024 22:13:12 +0000 Subject: [PATCH 11/16] Remove redundant semicolon --- .../test/kotlin/io/spine/server/model/AbstractReceptorSpec.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/test/kotlin/io/spine/server/model/AbstractReceptorSpec.kt b/server/src/test/kotlin/io/spine/server/model/AbstractReceptorSpec.kt index 3cd66d1270..79aa6eb409 100644 --- a/server/src/test/kotlin/io/spine/server/model/AbstractReceptorSpec.kt +++ b/server/src/test/kotlin/io/spine/server/model/AbstractReceptorSpec.kt @@ -219,7 +219,7 @@ internal class AbstractReceptorSpec { @Nested inner class `propagate instances of 'Mistake'` { - private val signature = SubscriberSignature(); + private val signature = SubscriberSignature() @Test fun `if a target throws 'Mistake'`() { From aaa1ce6720055aee2373ad6de0a54cbdcb0a84f8 Mon Sep 17 00:00:00 2001 From: Alexander Yevsyukov Date: Sat, 14 Dec 2024 22:27:28 +0000 Subject: [PATCH 12/16] Remove redundant (c) header --- pom.xml | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/pom.xml b/pom.xml index c105c5a3bc..0282ed67ea 100644 --- a/pom.xml +++ b/pom.xml @@ -1,30 +1,4 @@ - - 4.0.0 io.spine spine-core-java -2.0.0-SNAPSHOT.190 +2.0.0-SNAPSHOT.191 2015 @@ -68,7 +68,7 @@ all modules and does not describe the project structure per-subproject. io.spine spine-base - 2.0.0-SNAPSHOT.231 + 2.0.0-SNAPSHOT.232 compile From 5fda7dac9e8efd5f92a5043f552116d48c659205 Mon Sep 17 00:00:00 2001 From: Alexander Yevsyukov Date: Sun, 15 Dec 2024 13:24:40 +0000 Subject: [PATCH 15/16] Fix doc link --- server/src/main/java/io/spine/server/bus/Bus.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/java/io/spine/server/bus/Bus.java b/server/src/main/java/io/spine/server/bus/Bus.java index dd80efb30d..6fa381fcc7 100644 --- a/server/src/main/java/io/spine/server/bus/Bus.java +++ b/server/src/main/java/io/spine/server/bus/Bus.java @@ -362,7 +362,7 @@ private Optional filter(E message) { *

We treat {@link Mistake}s differently and want to void much of console output * for this special case of exceptions. * Please see {@link io.spine.server.model.AbstractReceptor#invoke(Object, MessageEnvelope)} - * for more details on special treatment of {@link Error} during dispatching. + * for more details on special treatment of {@link Message} during dispatching. * * @param envelopes * the envelopes to post From b0c67ef897375a7cf258d53ec37f7f8a4a49e81a Mon Sep 17 00:00:00 2001 From: Alexander Yevsyukov Date: Sun, 15 Dec 2024 13:49:36 +0000 Subject: [PATCH 16/16] Fix doc link --- server/src/main/java/io/spine/server/bus/Bus.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/java/io/spine/server/bus/Bus.java b/server/src/main/java/io/spine/server/bus/Bus.java index 6fa381fcc7..23a22f2d58 100644 --- a/server/src/main/java/io/spine/server/bus/Bus.java +++ b/server/src/main/java/io/spine/server/bus/Bus.java @@ -362,7 +362,7 @@ private Optional filter(E message) { *

We treat {@link Mistake}s differently and want to void much of console output * for this special case of exceptions. * Please see {@link io.spine.server.model.AbstractReceptor#invoke(Object, MessageEnvelope)} - * for more details on special treatment of {@link Message} during dispatching. + * for more details on special treatment of {@link Mistake} during dispatching. * * @param envelopes * the envelopes to post