On May 4, 2012, at 6:29 AM, johnHolmes wrote:
> I'm still stuck :(
>
> Let's see other examples that won't work:
>
> [JavaCode]
> public Type getType() { return _type; }
>
> [Error]
> /Unknown return type java.lang.reflect.Type found in method GetType in type
> OpenFeint.OF.Framework.Jackson.TypeReference/
>
> [My Metadata]
> *<attr
> path="/api/package[@name='com.openfeint.internal.vendor.org.codehaus.jackson.type']/class[@name='TypeReference']/method[@name='getType']"
> name="return">java.lang.reflect.Type</attr>*
This won't work, because we (deliberately) didn't bind Java reflection types
(java.lang.reflect.*). Consequently, this member cannot be bound; if you really
need it, you'll need to use JNIEnv.
Furthermore, your <attr/> fix is unnecessary here; the problem is that the type
it wants doesn't exist in managed code.
> [JavaCode]
> public static CipherOutputStream encryptionWrap(OutputStream os);
>
> [Error]
> /Unknown return type javax.crypto.CipherOutputStream found in method
> EncryptionWrap in type OpenFeint.OF.Framework.Encryption/
This is the same issue, just a different type: javax.crypto.CipherOutputStream
hasn't been bound.
I've filed a bug to track a solution for this:
https://bugzilla.xamarin.com/show_bug.cgi?id=4904
> As a side note, it is right to assume that there is no need to add
> android.jar reference to the project?
Correct; we'll always bind the android.jar that corresponds to the
targetSdkVersion or TargetFrameworkVersion you're building against.
Thanks,
- Jon
_______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid