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

[Native Image]why "allPublicMethods": true not covering <init>? #9898

Open
XenoAmess opened this issue Oct 16, 2024 · 0 comments
Open

[Native Image]why "allPublicMethods": true not covering <init>? #9898

XenoAmess opened this issue Oct 16, 2024 · 0 comments
Assignees
Labels

Comments

@XenoAmess
Copy link

XenoAmess commented Oct 16, 2024

Describe the issue

in my situation

[
  {
    "name": "a.b.c.D",
    "methods": [
      {
        "name": "<init>",
        "parameterTypes": []
      }
    ],
    "allPublicMethods": true
  }
]

works, but

[
  {
    "name": "a.b.c.D",
    "allPublicMethods": true
  }
]

not
since <init> of that class be a public function, why allPublicMethods failed for it?

Steps to reproduce the issue
Please include both build steps as well as run steps

  1. [e.g.: git clone --depth 1 https://git.myrepo.com/projectone ]
  2. [e.g.: mvn clean package]

Describe GraalVM and your environment:
java version "21.0.5" 2024-10-15 LTS
Java(TM) SE Runtime Environment Oracle GraalVM 21.0.5+9.1 (build 21.0.5+9-LTS-jvmci-23.1-b48)
Java HotSpot(TM) 64-Bit Server VM Oracle GraalVM 21.0.5+9.1 (build 21.0.5+9-LTS-jvmci-23.1-b48, mixed mode, sharing)

  • OS: win10
  • Architecture: AMD64

More details

I just use the non-arg constructor in jackson.

@XenoAmess XenoAmess added the bug label Oct 16, 2024
@XenoAmess XenoAmess changed the title why "allPublicMethods": true not covering <init>? [Native Image]why "allPublicMethods": true not covering <init>? Oct 16, 2024
@selhagani selhagani self-assigned this Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants