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

Ensure that Kotlin subclass of QuarkusApplication works properly #30058

Merged
merged 1 commit into from
Dec 24, 2022

Conversation

geoand
Copy link
Contributor

@geoand geoand commented Dec 23, 2022

Fixes: #30054

Copy link
Member

@evanchooly evanchooly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like maybe another test might be needed if i'm reading this code correctly but otherwise seems fine. This test is in the gradle IT tree but it doesn't look like there's anything specifically tied to gradle here so there's nothing to be done for maven, yes?

import io.quarkus.runtime.annotations.QuarkusMain

@QuarkusMain(name = "my-main")
class MyMainClass : QuarkusApplication {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This all looks fine to me, in general, but I'm curious why this wouldn't have the super class in the check above. or is that check intended for top level functions and this test just doesn't exercise that code path?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right. I could add another level of superclass in order to exercise the recursive lookup.

@geoand
Copy link
Contributor Author

geoand commented Dec 23, 2022

This test is in the gradle IT tree but it doesn't look like there's anything specifically tied to gradle here so there's nothing to be done for maven, yes?

Exactly. The reason I added it to the gradle tests is because we didn't have any more Kotlin modules in the integration-tests

@quarkus-bot
Copy link

quarkus-bot bot commented Dec 23, 2022

Failing Jobs - Building 59e73b7

Status Name Step Failures Logs Raw logs
✔️ JVM Tests - JDK 11
✔️ JVM Tests - JDK 17
JVM Tests - JDK 17 MacOS M1 Set up runner ⚠️ Check → Logs Raw logs
✔️ JVM Tests - JDK 18

@geoand geoand merged commit cf3ace4 into quarkusio:main Dec 24, 2022
@geoand geoand deleted the #30054 branch December 24, 2022 05:31
@quarkus-bot quarkus-bot bot added this to the 2.16 - main milestone Dec 24, 2022
@gsmet gsmet modified the milestones: 2.16 - main, 2.15.2.Final Jan 3, 2023
geoand added a commit to geoand/quarkus that referenced this pull request Jan 5, 2023
Fixes: quarkusio#30190

Follows up on: quarkusio#30058 (which incorrectly checked for QuarkusApplication
as a superclass)
geoand added a commit to geoand/quarkus that referenced this pull request Jan 5, 2023
Fixes: quarkusio#30190

Follows up on: quarkusio#30058 (which incorrectly checked for QuarkusApplication
as a superclass)
gsmet pushed a commit to gsmet/quarkus that referenced this pull request Jan 9, 2023
Fixes: quarkusio#30190

Follows up on: quarkusio#30058 (which incorrectly checked for QuarkusApplication
as a superclass)

(cherry picked from commit d5fb7fc)
ebullient pushed a commit to maxandersen/quarkus that referenced this pull request Jan 24, 2023
Fixes: quarkusio#30190

Follows up on: quarkusio#30058 (which incorrectly checked for QuarkusApplication
as a superclass)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2.15.1.Final breaks command mode with main class extends from QuarkusApplication in kotlin
3 participants