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#2: compiler, support for non-static @Bridge methods in ValuedEnums #420

Merged

Conversation

dkimitsa
Copy link
Contributor

non-static @bridge methods happen for functions binding which first argument corresponds with receiver (e.g. class name it is being put). This works for Struct and NativeObject classes but doesn't for TypedEnum and failed with exception:

Receiver of non static @bridge method must either be a Struct or a NativeObject.

This PR adds support for TypedEnum as receiver to allow following method to be compiled: UIImageSymbolWeight.toFontWeight

…uct or a NativeObject.* exception when compiling non-static @bridge method that part of ValuedEnum (UIImageSymbolWeight.toFontWeight() for example)
@dkimitsa
Copy link
Contributor Author

long read in post

@Tom-Ski Tom-Ski merged commit c95e0f9 into MobiVM:jdk12 Nov 7, 2019
@dkimitsa dkimitsa deleted the cocoa13_postfix2_non_static_bridges_in_enums branch November 8, 2019 10:45
dkimitsa added a commit to dkimitsa/robovm that referenced this pull request Apr 9, 2020
…uct or a NativeObject.* exception when compiling non-static @bridge method that part of ValuedEnum (UIImageSymbolWeight.toFontWeight() for example) (MobiVM#420)
dkimitsa added a commit to dkimitsa/robovm that referenced this pull request Apr 9, 2020
…uct or a NativeObject.* exception when compiling non-static @bridge method that part of ValuedEnum (UIImageSymbolWeight.toFontWeight() for example) (MobiVM#420)
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