You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[api-xml-adjuster] Outer<X>.Inner<Y> class name parsing. (#109)
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=46344
`Xamarin.Android.Tools.ApiXmlAdjuster.JavaTypeName.Parse()` would
throw an `ArgumentOutOfRangeException` when encountering generic
nested types on generic types.
Given the following valid Java code:
// Java
class GenericOuter<TOuter> {
public class GenericInner<TInner> {
}
}
class Gapp {
public static void main (String[] args) {
GenericOuter<Integer>.GenericInner<String> v = null;
}
}
Then the following would fail:
JavaTypeName.Parse("GenericOuter<Integer>.GenericInner<String>")
System.ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length
...
Fix `JavaTypeName.Parse()` to support parsing nested generic types
on generic types.
0 commit comments