-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a bug in AutoAnnotation when using Collections to pass values to …
…generic array parameters. Without this AutoAnnotation would generate code that constructed arrays of generic types which would result in errors from javac like: "Cannot create a generic array of Class<? extends Annotation>" Also, change the generated code to not presize the array when calling Collection.toArray, for hotspot vms this is likely a pessimization per http://shipilev.net/blog/2016/arrays-wisdom-ancients/ and I doubt @AutoAnnotation is used much outside of hotspot vms. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=127234753
- Loading branch information
1 parent
5ec14eb
commit 82041d0
Showing
4 changed files
with
71 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters