Interface bridge methods are considered workflow methods
メンテナーはふだん 1 日以内に返信
@Quinn-With-Two-Ns がすでに取り組んでいます。
2026年11月24日 から。
評価
- 難易度
- 3/5
- 見積もり時間
- 半日
- 初心者へのやさしさ
- 62/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- java
調査の方向性
The duplicate check lives in POJOWorkflowInterfaceMetadata.java, where getDeclaredMethods() is read and only synthetic methods are filtered out. Start by reproducing the BaseWF/ConcreteWF example through POJOWorkflowInterfaceMetadata.newInstance(ConcreteWF.class), then confirm the bridge method for run(Record) is the one being counted. Done means the bridge method is skipped, the metadata builds without the Duplicated @WorkflowMethod error, and a test covers the generic-interface case.
索引モデルが issue の本文から書いたものです。
説明
Expected Behavior
Following the example at
https://github.com/temporalio/sdk-java/blob/main/temporal-sdk/src/test/java/io/temporal/workflow/PolymorphicStartTest.java
I expected for it to work in the following scenario:
public interface BaseWF<RQ extends Record, RSP extends Record> {
RSP run(RQ request);
}
@WorkflowInterface
public interface ConcreteWF extends BaseWF<Request, Response> {
@WorkflowMethod
@Override
Response run(Request request);
}
public record Request(int dummy) {}
public record Response(int dummy) {}
Actual Behavior
It fails on interface metadata retrieval with message (edited for brevity):
Duplicated @WorkflowMethod: public default java.lang.Record BaseWF.run(java.lang.Record) and public abstract Response ConcreteWF.run(Request)
because it calls workflowInterface.getDeclaredMethods() to get workflow methods. But in the scenario above Java generates a "declared" bridge method and current code in POJOWorkflowInterfaceMetadata only checks for synthetic methods and wrongfully considers a bridge method (which is by its nature the same method) a second workflow method.
All the while should it have ignored the bridge method, it would have worked in a true polymorphic fashion, because ConcreteWF would have resolved all type parameters to natively serializable concrete Records.
Steps to Reproduce the Problem
- Implement scenario above
- Call POJOWorkflowInterfaceMetadata.newInstance(ConcreteWF.class)
Specifications
- Version: 1.40.0
- Platform: Linux, Java 26
- 主要言語
- Java
- スター
- 447
- フォーク
- 278
- 平均マージ
- 3日 22時間
- マージ済み PR(30日)
- 28
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
temporalio/sdk-java のほかの issue
-
Support the certificate with linebreak strings from env variable対応中かも @officialasishkumar が 22 日前に担当しました。 オープンenhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
temporalio/sdk-java#1825 ·
メンテナーはふだん 1 日以内に返信
-
Spring Boot drops mainDataConverter when a non-root namespace is configured対応中かも @yumingjs が 1 日前に担当しました。 オープンbug
難易度 3/5 1〜2日 初心者へのやさしさ 74/100
temporalio/sdk-java#3245 ·
メンテナーはふだん 1 日以内に返信
-
Spring Boot ignores Ordered on TemporalOptionsCustomizer beans対応中かも @Quinn-With-Two-Ns が 2 日前に担当しました。 オープンbug
難易度 3/5 1〜2日 初心者へのやさしさ 30/100
temporalio/sdk-java#3244 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 38/100
temporalio/sdk-java#3238 · コメント 7 件 ·
メンテナーはふだん 1 日以内に返信
-
Fix graceful shutdown of the shared worker-command poller対応中かも @yuandrew が 9 日前に担当しました。 オープンsdk-java
temporalio/sdk-java#3234 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
temporalio/sdk-java の issue をすべて見る
似ている issue
-
area-integrations
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
? - Needs Triage bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
NVIDIA/cudf-spark-jni#5598 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
oracle/graalvm-reachability-metadata#12264 ·
メンテナーはふだん 1 日以内に返信
-
[source-facebook-pages] post stream never returns attachments.media_type対応中かも @v-k-data が今日担当しました。 オープンarea/connectors needs-triage type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 1 日以内に返信
-
[BUG] AppSync: GetIntrospectionSchema wraps the schema in JSON instead of returning the raw SDL bodyオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
floci-io/floci#10107 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信