Skip to content

Auto detect main methods inherited from Java sources (including JEP 512 ones) - #4425

Draft
Gedochao wants to merge 1 commit into
VirtusLab:mainfrom
Gedochao:feature/detect-inherited-main-methods-2
Draft

Auto detect main methods inherited from Java sources (including JEP 512 ones)#4425
Gedochao wants to merge 1 commit into
VirtusLab:mainfrom
Gedochao:feature/detect-inherited-main-methods-2

Conversation

@Gedochao

@Gedochao Gedochao commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #4418 (comment)

This enables auto-detection of main methods inherited from Java classes/interfaces. Including ones added by JEP 512.

// C.java
public abstract class C {
    void main() {
        System.out.println("Hello from an instance main");
    }
}
// A.java
public class A extends C

Checklist

  • tested the solution locally and it works
  • ran the code formatter (scala-cli fmt .)
  • ran scalafix (./mill -i __.fix)

How much have your relied on LLM-based tools in this contribution?

extensively

How was the solution tested?

added automated tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant