Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double annotation of verb results in duplicate declaration errors #4006

Open
matt2e opened this issue Jan 14, 2025 · 0 comments
Open

Double annotation of verb results in duplicate declaration errors #4006

matt2e opened this issue Jan 14, 2025 · 0 comments
Labels
jvm triage Issue needs triaging

Comments

@matt2e
Copy link
Collaborator

matt2e commented Jan 14, 2025

JVM should handle cases where a function is annotated with @Verb and @Cron or @Subscrive gracefully rather than causing a build error

@Cron("1s")
@Export
@Verb
fun echo() {
    throw RuntimeException("This is a test")
}

error: Initial deploy failed: Validation failure: echo: schema declaration with name "echo" already exists for module "ticker"; previously declared at "EchoVerb.kt:12"

@matt2e matt2e added jvm demo Label for upcoming demo(s) labels Jan 14, 2025
@github-actions github-actions bot added the triage Issue needs triaging label Jan 14, 2025
This was referenced Jan 14, 2025
@matt2e matt2e changed the title Kotlin module failed to build with duplicate topic definition Removing JVM files does not always trigger mvn clean Jan 15, 2025
@matt2e matt2e changed the title Removing JVM files does not always trigger mvn clean Double indication of verb results in duplicate declaration errors Jan 15, 2025
@matt2e matt2e changed the title Double indication of verb results in duplicate declaration errors Double annotation of verb results in duplicate declaration errors Jan 15, 2025
@matt2e matt2e removed the demo Label for upcoming demo(s) label Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jvm triage Issue needs triaging
Projects
None yet
Development

No branches or pull requests

1 participant