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

函数签名的返回类型解析错误 #60

Closed
firmianay opened this issue Nov 14, 2023 · 2 comments
Closed

函数签名的返回类型解析错误 #60

firmianay opened this issue Nov 14, 2023 · 2 comments

Comments

@firmianay
Copy link
Contributor

对于包含,号复杂返回值,会解析出错然后退出。

解决办法:
1、修改规则,把函数签名的返回类型改成*
2、修改程序MethodSignatureParseState.ReturnType -> {},把整个字符串作为返回类型,就是不知道对后续有没有影响?

{
    "READ_PHONE_STATE": {
        "APIMode": true,
        "desc": {
            "name": "READ_PHONE_STATE",
            "detail": "",
            "category": "ComplianceInfo",
            "complianceCategory": "",
            "complianceCategoryDetail": "",
            "level": ""
        },
        "entry": {},
        "source": {},
        "sink": {
            "<android.telephony.TelephonyManager: java.util.Map<java.lang.Integer,java.util.List<android.telephony.emergency.EmergencyNumber>> getEmergencyNumberList()>": {}
        }
    }
}

image

@nkbai
Copy link
Collaborator

nkbai commented Nov 16, 2023

jimle中并不会出现java.util.Map<java.lang.Integer,java.util.List<>>这种复杂的签名

@nkbai nkbai closed this as completed Nov 16, 2023
@firmianay
Copy link
Contributor Author

我在那个PR里增加了错误输出,当时几百个签名,排查这个问题用二分法找了很久...
logErr("Format Error $methodSig")

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

2 participants