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

It went wrong when I binds with one IOS SDK. #188

Open
yx421626416 opened this issue Jan 27, 2016 · 0 comments
Open

It went wrong when I binds with one IOS SDK. #188

yx421626416 opened this issue Jan 27, 2016 · 0 comments

Comments

@yx421626416
Copy link

when I binds with some SDKs,it have the err.
java.lang.ArrayStoreException: source[0] of type org.robovm.bindings.sharesdk.SSDKPlatformType cannot be stored in destination array of type org.robovm.objc.ObjCObject[]
at java.lang.System.arraycopy(System.java:273)
at java.lang.System.arraycopy(System.java:199)
at java.util.ArrayList.toArray(ArrayList.java:523)
at org.robovm.apple.foundation.NSArray.(NSArray.java:205)
at org.robovm.apple.foundation.NSArray$AsListMarshaler.toNative(NSArray.java:66)

My binds method is
@method(selector = "registerApp:activePlatform:onImport:onConfiguration:")
public native static void registerApp(String key,
ArrayList activePlatforms, SSDKImportHandler onImport,
SSDKConfigurationHandler onConfiguration);
and my enum is
public enum SSDKPlatformType implements ValuedEnum {
Unknown(0), //
SinaWeibo(1), //
TencentWeibo(2), //
// Twitter(11), //
// WechatSession(22), //
// WechatTimeline(23), //
;
private final long n;

private SSDKPlatformType(int value) {
    this.n = value;
}

@Override
public long value() {
    return n;
}

whats wrong with them?

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

No branches or pull requests

1 participant