Skip to content

Conversation

@hohserg1
Copy link

@hohserg1 hohserg1 commented Dec 5, 2023

Example case:

Class<?> c = new java.io.Serializable(){}.getClass();
System.out.println(c.getCanonicalName()); //null
System.out.println(getPackageName(c)); //some.valid.package

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