Skip to content

BackgroundPreinitializer doesn't work with AOT #14157

Closed

Description

@dsyer

The BackgroundPreinitializer is written in a style of try/catch/swallow to deal with classes that aren't available at runtime. It's easier on the eye than checking for each class before trying to use it, but it doesn't work with Graal AOT (the BackgroundPreinitializer just errors out on line 83, the Tomcat MBeans, if Tomcat is not on the classpath, and then never recovers).

Possibly related oracle/graal#622 and #14147

Activity

  1. added
    status: waiting-for-triage
    on Aug 21, 2018
  2. added
    for: team-attention
    on Aug 27, 2018
  3. philwebb commented on Aug 28, 2018

    @philwebb
    Member

    Tempted to see how oracle/graal#622 plays out before we rush to change this. I imagine we've a more cases like that.

  4. self-assigned this
    on Aug 29, 2018
  5. added
    for: external-project
    and removed
    for: team-attention
    status: waiting-for-triage
    on Aug 29, 2018
  6. philwebb commented on Aug 29, 2018

    @philwebb
    Member

    @dsyer I've added a new label called theme: graal to track all these related issues. I think we'll need to wait for Spring Boot 2.2 before we can really tackle it in any meaningful form. Probably the first one we should fix is #14216 so that we can have a CI for it.

    It looks like oracle/graal#622 has been accepted so I'll close this one with the hope that they fix it in the VM. If they can't/won't fix the VM issue then we can reopen this one.

  7. philwebb commented on Aug 29, 2018

    @philwebb
    Member

    BTW: Feel free to add the theme label to any issues I missed.

  8. added
    theme: aot
    on Jun 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

for: external-projecttheme: aot

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions