Skip to content

Invalid Java type for annotated array parameters #3796

Closed
@ppkarwasz

Description

@ppkarwasz

The GraalVmProcessor incorrectly computes the fully qualified class name for parameters of type array, failing to remove annotations from the array type. As a result, the generated GraalVM metadata is invalid. For example:

{
  "name": "org.apache.logging.log4j.core.pattern.RootThrowablePatternConverter",
  "methods": [
    {
      "name": "newInstance",
      "parameterTypes": [
        "org.apache.logging.log4j.core.config.Configuration",
        "@org.jspecify.annotations.Nullable java.lang.String[]"
      ]
    }
  ],
  "fields": []
}

This issue causes the metadata to incorrectly include the annotation in the parameter type (@org.jspecify.annotations.Nullable), which cause GraalVM to ignore the entry.

Metadata

Metadata

Assignees

Labels

graalvmIssue related to GraalVM support

Type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions