Skip to content

Conversation

@copybara-service
Copy link
Contributor

Rewrite and publish Throwables.testLazyStackTraceFallback.

Previously it used a security manager to forbid access to the sun.misc APIs and thus force the use of the fallback logic. It also had some Google-internal logic that meant it couldn't be published. Now it uses a custom ClassLoader to achieve the same effect more portably.

The code path tested here is mostly obsolete. It is really only relevant for JDK 8, so not on Android and not on any later JDK version.

RELNOTES=n/a

Previously it used a security manager to forbid access to the `sun.misc` APIs and thus force the use of the fallback logic. It also had some Google-internal logic that meant it couldn't be published. Now it uses a custom `ClassLoader` to achieve the same effect more portably.

The code path tested here is mostly obsolete. It is really only relevant for JDK 8, so not on Android and not on any later JDK version.

RELNOTES=n/a
PiperOrigin-RevId: 703567939
@copybara-service copybara-service bot closed this Jul 22, 2025
@copybara-service copybara-service bot deleted the test_703567939 branch July 22, 2025 23:13
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.

1 participant