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

Avoid letting our transformation rules getting transformed #28140

Merged
merged 1 commit into from
Sep 22, 2022

Conversation

Sanne
Copy link
Member

@Sanne Sanne commented Sep 21, 2022

Fixes #28018

A cleaner solution would be to avoid transforming this extension, but I've not found a way to exclude a single one w/o making the whole script much more complicated.

This seems to work, but I only tried to run the jakarta transformation section of the script.

@Sanne Sanne requested a review from gsmet September 21, 2022 22:36
@quarkus-bot quarkus-bot bot added the area/persistence OBSOLETE, DO NOT USE label Sep 21, 2022
Copy link
Contributor

@gastaldi gastaldi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps we could have some sort of source-only (RetentionPolicy.SOURCE) annotation (or comment) that would hint the transforming script to avoid it, but that works for now ;)

private static String forbiddenName() {
StringBuilder sb = new StringBuilder("java")
.append("x.")
.append("transaction");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIRC, I just fixed it by doing a "javax." + "transaction" where I faced the issue.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But given you're transforming the bytecode and not the source, maybe it wouldn't work.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yea, pretty sure that would have worked too. But didn't want to take chances - spent enough on this :)

@gsmet gsmet merged commit 01e54fc into quarkusio:main Sep 22, 2022
@quarkus-bot quarkus-bot bot added this to the 2.14 - main milestone Sep 22, 2022
@gsmet gsmet modified the milestones: 2.14 - main, 2.13.4.Final Oct 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Jakarta - EE 10 - IBM Db2 native image build failure
3 participants