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

throw an IAE on a missing class alias #721

Merged
merged 2 commits into from
Aug 31, 2023
Merged

Conversation

peter-lawrey
Copy link
Member

No description provided.

Copy link
Contributor

@JerryShea JerryShea left a comment

Choose a reason for hiding this comment

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

Love it

@@ -66,6 +66,8 @@ public class TextWire extends YamlWireOut<TextWire> {
static final Supplier<StopCharsTester> STRICT_END_OF_TEXT_ESCAPING = TextStopCharsTesters.STRICT_END_OF_TEXT::escaping;
static final Supplier<StopCharsTester> END_EVENT_NAME_ESCAPING = TextStopCharsTesters.END_EVENT_NAME::escaping;
static final Bytes<?> META_DATA = Bytes.from("!!meta-data");
@Deprecated(/* for removal in x.26, make default true in x.25 */)
static final boolean IAE_ON_CNF = Jvm.getBoolean("illegal.argument.for.missing.class.alias", false);
Copy link
Contributor

Choose a reason for hiding this comment

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

@chroniclekevinpowe given that this will not change behaviour unless someone turns on the system property, I think that this is a candidate for backporting to 23

Copy link
Member Author

Choose a reason for hiding this comment

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

It should be possible to backport even breaking changes with this strategy of having it disabled by default.

@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell C 6 Code Smells

38.5% 38.5% Coverage
0.0% 0.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@peter-lawrey peter-lawrey merged commit 9dc3be4 into develop Aug 31, 2023
@peter-lawrey peter-lawrey deleted the IAE-on-missing-class branch August 31, 2023 16:17
chroniclekevinpowe pushed a commit that referenced this pull request Sep 1, 2023
* throw an IAE on a missing class alias

* Change how banned package are handled
chroniclekevinpowe added a commit that referenced this pull request Sep 1, 2023
Backport throw an IAE on a missing class alias (#721) to 2.23
peter-lawrey added a commit that referenced this pull request Sep 5, 2023
* throw an IAE on a missing class alias

* Change how banned package are handled
peter-lawrey added a commit that referenced this pull request Jan 5, 2024
* throw an IAE on a missing class alias

* Change how banned package are handled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants