-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
fix(openapi-generator): fixes GlobalSettings #20744
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
Conversation
|
Thanks for the PR but your commit (as shown in the Commits tab) is not linked to your Github account, which means this PR won't count as your contribution in https://github.com/OpenAPITools/openapi-generator/graphs/contributors. Let me know if you need help fixing it. |
|
Hi @wing328, thanks to highlighting that. I'm going to fix it asap 👍🏻 |
c839bcf to
12a1773
Compare
|
can you please review the build failures when you've time? |
…Exception when GlobalSettings#log is invoked
12a1773 to
867c7a3
Compare
|
@wing328 could you try to build it again? There was an issue when running on ubuntu that I've fixed. Thanks. |
|
thanks for the fix. looks good to me |
|
can you please take a look at https://github.com/OpenAPITools/openapi-generator/actions/runs/13909102161/job/38919010919?pr=20888 ? restarting the job seems to "fix" the issue |
|
Hi @wing328,
Although the object we are referencing is static and final and its address should never change the only thing we can try is to get its address immediately and save it in a constant to use for further searches. If this approach still fails we can think of removing the failing assertions. Let me know if you want to run your pipeline again and see if the error occurs again or if you want to skip this step and try the proposed approach. |
|
just merged #20925 to revise the test a bit and it seems to fix the issue for other PRs: #20888 (comment) |
This pull request aims to fix an issue I've noticed when adding a non-string value or key as a system property.
The issue surfaces during the invocation of CodeMojo#execute.
In such cases, GlobalSettings#log throws a
ClassCastExceptionas expected/partially documented here.PR checklist
Commit all changed files.
This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
These must match the expectations made by your contribution.
You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example
./bin/generate-samples.sh bin/configs/java*.IMPORTANT: Do NOT purge/delete any folders/files (e.g. tests) when regenerating the samples as manually written tests may be removed.
master(upcoming7.x.0minor release - breaking changes with fallbacks),8.0.x(breaking changes without fallbacks)