Interface bridge methods are considered workflow methods
Los mantenedores suelen responder en 1 día
@Quinn-With-Two-Ns ya está trabajando en esto.
Desde el 24/11/2026.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- Medio día
- Aptitud para principiantes
- 62/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- java
- Área
- backend, distributed-systems
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Java
- Estrellas
- 447
- Forks
- 278
- Merge medio
- 3 d 22 h
- PR fusionados (30 d)
- 28
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de temporalio/sdk-java
-
Support the certificate with linebreak strings from env variablePosiblemente ocupada @officialasishkumar la tomó hace 22 días. Abiertoenhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
temporalio/sdk-java#1825 ·
Los mantenedores suelen responder en 1 día
-
Spring Boot drops mainDataConverter when a non-root namespace is configuredPosiblemente ocupada @yumingjs la tomó hace 1 día. Abiertobug
Dificultad 3/5 1-2 días Aptitud para principiantes 74/100
temporalio/sdk-java#3245 ·
Los mantenedores suelen responder en 1 día
-
Spring Boot ignores Ordered on TemporalOptionsCustomizer beansPosiblemente ocupada @Quinn-With-Two-Ns la tomó hace 2 días. Abiertobug
Dificultad 3/5 1-2 días Aptitud para principiantes 30/100
temporalio/sdk-java#3244 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 38/100
temporalio/sdk-java#3238 · 7 comentarios ·
Los mantenedores suelen responder en 1 día
-
Fix graceful shutdown of the shared worker-command pollerPosiblemente ocupada @yuandrew la tomó hace 9 días. Abiertosdk-java
temporalio/sdk-java#3234 · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de temporalio/sdk-java
Issues similares
-
area-integrations
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
? - Needs Triage bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
NVIDIA/cudf-spark-jni#5598 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
oracle/graalvm-reachability-metadata#12264 ·
Los mantenedores suelen responder en 1 día
-
[source-facebook-pages] post stream never returns attachments.media_typePosiblemente ocupada @v-k-data la tomó hoy. Abiertoarea/connectors needs-triage type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
Los mantenedores suelen responder en 1 día
-
[BUG] AppSync: GetIntrospectionSchema wraps the schema in JSON instead of returning the raw SDL bodyAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
floci-io/floci#10107 · 1 comentario ·
Los mantenedores suelen responder en 1 día