Skip to content

OuyaEncryptionHelper.DecryptReceiptResponse NoSuchMethodError #3

@mkilling

Description

@mkilling

This causes a NoSuchMethodError at runtime:

var helper = new OuyaEncryptionHelper();
helper.DecryptReceiptResponse(jsonObject, publicKey);

The reason seems to be a signature mismatch: OuyaEncryptionHelper.DecryptReceiptResponse is defined with the first parameter being a org.json.JSONObject but this is overridden to become a java.lang.Object. This was done in f6e8084, in lines 49-50 of Metadata.xml:

<attr path= "//parameter[@type='org.json.JSONObject']" name="type">java.lang.Object</attr>
<attr path= "//parameter[@type='org.json.JSONArray']" name="type">java.lang.Object</attr>

The comment suggests it's only a temporary workaround. Could you explain why you had to override the JSON types?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions