Browse Source
Prior to this commit, the error message generated for a mismatched number of generics did not include the information about the class in question. This commit improves the error message by providing more context, specifically the result of invoking toGenericString() on the class. For example, instead of throwing an IllegalArgumentException with the error message "Mismatched number of generics specified", the error message would now be "Mismatched number of generics specified for public abstract interface java.util.Map<K,V>". Closes gh-27847pull/28119/head
2 changed files with 5 additions and 4 deletions
Loading…
Reference in new issue