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

Use class modifiers to detect primitive classes #184

Open
wants to merge 1 commit into
base: 17.x
Choose a base branch
from

Conversation

dmlloyd
Copy link
Collaborator

@dmlloyd dmlloyd commented Apr 21, 2022

No description provided.

@@ -202,6 +202,11 @@ public Class<?> getNestHost() {
return nestHost;
}

@Replace
public boolean isPrimitive() {
return (modifiers & (1 << 17)) != 0;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would be nice if we could use I_ACC_PRIMITIVE here instead of hardcoding 17.

@dmlloyd
Copy link
Collaborator Author

dmlloyd commented May 4, 2022

The tests are failing because it appears we have multiple class objects for each given primitive type.

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