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

Fix false positive ClassInitializationDeadlock on .class access #1654

Merged

Conversation

carterkozak
Copy link
Contributor

Before this PR

False positive preventing baseline upgrades in sls-packaging: palantir/sls-packaging#1062

After this PR

Accessing the class field does not initialize a class.
==COMMIT_MSG==
Fix false positive ClassInitializationDeadlock on .class access
==COMMIT_MSG==

Possible downsides?

There are operations one can invoke upon the Class object which will initialize
the referenced class, but those are relatively rare and out of scope for this check.

Accessing the class field does not initialize a class. There are
operations one can invoke upon the class object which will initialize
the class, but those are relatively rare and out of scope for this
check.
@changelog-app
Copy link

changelog-app bot commented Feb 23, 2021

Generate changelog in changelog/@unreleased

Type

  • Feature
  • Improvement
  • Fix
  • Break
  • Deprecation
  • Manual task
  • Migration

Description

Fix false positive ClassInitializationDeadlock on .class access

Check the box to generate changelog(s)

  • Generate changelog entry

@policy-bot policy-bot bot requested a review from fawind February 23, 2021 18:12
Copy link
Contributor

@fawind fawind left a comment

Choose a reason for hiding this comment

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

Makes sense to allow this!

@bulldozer-bot bulldozer-bot bot merged commit 26676fc into develop Feb 23, 2021
@bulldozer-bot bulldozer-bot bot deleted the ckozak/ClassInitializationDeadlock_class_access branch February 23, 2021 18:44
@svc-autorelease
Copy link
Collaborator

Released 3.68.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants