Skip to content
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

ios13_postfix#1: compiler, fixed resolving of block argument in generic type #419

Merged
merged 1 commit into from
Nov 7, 2019

Conversation

dkimitsa
Copy link
Contributor

Compiler fails when compiling NSOrderedCollectionDifference with exception:

org.robovm.compiler.CompilerException: Unresolved type variable T in parameter 1 of @block method

This PR fixes block method parameter resolution by resolving arguments to Java classes level eliminating TypeVariable ones from it.

…riable T in parameter 1 of @block method`. When compiler was wrongly resolving direct and indirect type variables, like

`public native <U extends Number> void runner8(F<Object, Integer, U> f);`
@dkimitsa
Copy link
Contributor Author

more details in post

@Tom-Ski Tom-Ski merged commit 01c4424 into MobiVM:jdk12 Nov 7, 2019
@dkimitsa dkimitsa deleted the cocoa13_postfix1_generic_blocks_fix branch November 8, 2019 10:45
dkimitsa added a commit to dkimitsa/robovm that referenced this pull request Apr 9, 2020
…riable T in parameter 1 of @block method`. When compiler was wrongly resolving direct and indirect type variables, like (MobiVM#419)

`public native <U extends Number> void runner8(F<Object, Integer, U> f);`
dkimitsa added a commit to dkimitsa/robovm that referenced this pull request Apr 9, 2020
…riable T in parameter 1 of @block method`. When compiler was wrongly resolving direct and indirect type variables, like (MobiVM#419)

`public native <U extends Number> void runner8(F<Object, Integer, U> f);`
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.

2 participants