The `isFunctionPojo()` accepts any bean as a function

Offen
#1,506 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
52/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
java, spring-boot
Bereich
backend

Rechercherichtung

Start by reading isFunctionPojo() and discoverFunctionalMethod() to trace how a bean named by spring.cloud.function.definition is classified. Check the existing tests for POJO function discovery and unrelated beans; the issue is addressed when an unrelated bean is not registered as a function and the failure is no longer obscure. The issue does not name specific files or tests, so locate those before making changes.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

enhancement

Currently we're treating any non-synthetic bean that isn't a Function, Supplier or Consumer as POJO function.
A definition provided via spring.cloud.function.definition, or a typo that matches an unrelated bean, goes into discoverFunctionalMethod(). It then fails with an obscure error, or it registers an arbitrary bean as a function.

Vorherrschende Sprache
Java
Sterne
1.1k
Forks
636
Ø Merge
15 Std. 57 Min.
Gemergte PRs (30 T.)
22

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus spring-cloud/spring-cloud-function

Alle Issues in spring-cloud/spring-cloud-function

Ähnliche Issues

Weitere Issues zu Java

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.