Skip to content

Better workaround needed for javac 10 and 11 --release bug #328

Closed

Description

@jcflack

The bug in javax.lang.model.util.Elements.getTypeElement that wasn't in 9, appeared in 10 and 11, and was fixed again for 12, was worked around very inelegantly here in c763cee, just by changing the target --release so that a build done with 10 or 11 would not be able to run on 9 (or 10, if built with 11). Builds done with 9, or 12+, could run on any version 9+. Yuck.

It turns out (unsurprisingly, in retrospect) that the same issue would also bite someone building PL/Java user code; double yuck. There has to be something better to say to users than "well, fudge your target release if you are using 11 or 10 to build."

Activity

  1. jcflack commented on Nov 17, 2020

    @jcflack
    ContributorAuthor

    Believed resolved in 1.6.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions