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

Java inner class creates weird schema #2746

Closed
tomdaffurn opened this issue Sep 20, 2024 · 0 comments · Fixed by #2780
Closed

Java inner class creates weird schema #2746

tomdaffurn opened this issue Sep 20, 2024 · 0 comments · Fixed by #2780
Assignees
Labels
bug Something isn't working jvm

Comments

@tomdaffurn
Copy link
Contributor

Using an inner class as data produces weird schema. The this$0 parent class reference confuses the schema extractor.

e.g.

public class ExampleModule {
    @Export
    @Verb
    public InnerClass TheVerb(InnerClass val) {
        return val;
    }

    public class InnerClass {
        private String field;
    }
}

Produces:

module example {
 export data ExampleModule {
 }

 export data InnerClass {
   field String
   this$0 example.ExampleModule
 }

 export verb TheVerb(example.InnerClass) example.InnerClass
}
@tomdaffurn tomdaffurn added bug Something isn't working jvm labels Sep 20, 2024
@github-actions github-actions bot added the triage Issue needs triaging label Sep 20, 2024
This was referenced Sep 20, 2024
stuartwdouglas added a commit that referenced this issue Sep 23, 2024
@stuartwdouglas stuartwdouglas removed the triage Issue needs triaging label Sep 23, 2024
@stuartwdouglas stuartwdouglas self-assigned this Sep 23, 2024
stuartwdouglas added a commit that referenced this issue Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working jvm
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants