Skip to content

Conversation

ppkarwasz
Copy link
Contributor

The Java 9 version of StackLocator has an additional public getCallerClass(String) method. This method makes the Java 8 and 9 versions of StackLocator expose different APIs to the user. To prevent API compatibility problems, we remove the additional method.

This incompatibility was accidentally discovered during the work in #3339: japicmp did randomly compare a StackLocator class from the old version with a StackLocator class from the new version.

This is part of #1867.

The Java 9 version of `StackLocator` has an additional public `getCallerClass(String)` method. This method makes the Java 8 and 9 versions of `StackLocator` expose different APIs to the user. To prevent API compatibility problems, we remove the additional method.

This incompatibility was accidentally discovered during the work in #3339: `japicmp` did randomly compare a `StackLocator` class from the old version with a `StackLocator` class from the new version.

This is part of #1867.
@ppkarwasz ppkarwasz merged commit cb46e63 into 2.x Dec 30, 2024
9 checks passed
@ppkarwasz ppkarwasz deleted the fix/2.x/stacklocator-incompatibility branch December 30, 2024 08:28
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