Skip to content

Invalid Java type for annotated array parameters #3796

@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

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy