-
Notifications
You must be signed in to change notification settings - Fork 10.8k
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
ClassPath.getTopLevelClasses() does not return a top-level class with $ character #3349
Comments
The issue of course is that |
Thank you for response. Our project (cloud-opensource-java) will use |
I guess, doing this would be a clear improvement for a minimum cost. You could also use a heuristics like "when there's no |
Seems like a useful method? I can't remember why I didn't add it in the first place. Perhaps just an oversight. Partially addresses #3349 RELNOTES=`reflect`: Added `ClassInfo.isTopLevel()`. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=338738055
Seems like a useful method? I can't remember why I didn't add it in the first place. Perhaps just an oversight. Partially addresses #3349 RELNOTES=`reflect`: Added `ClassInfo.isTopLevel()`. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=338738055
And add some documentation relevant to #3349 RELNOTES=n/a PiperOrigin-RevId: 368551044
And add some documentation relevant to #3349 RELNOTES=n/a PiperOrigin-RevId: 368916206
@netdpb and I found that ClassPath.getTopLevelClasses() does not return top-level class with $ character in its name. Example class:
com.google.cloud.bigquery.$AutoValue_Labels
in google-cloud-bigquery-1.56.0.jar.Test case
JLS 3.8 states that dollar sign ('$') is a valid Java letter.
AutoValue has
@Memoized
annotation, which creates class$AutoValue_XXXX
andAutoValue_XXXX extends $AutoValue_XXXX
in the same package.The text was updated successfully, but these errors were encountered: