Open fengruisd opened 4 years ago
Can you share your configuration? Do you also have ReBindRefsPass
, we need the two passes work together. cc @thezhangwei
Sorry for the late comment. I'm wondering if it could be a glitch in the input. The overriding method cannot have more restricted access than the base one?
I didn't have ReBindRefsPass in my configuration, I'll try it
I didn't have ReBindRefsPass in my configuration, I'll try it
Hi, I don't think you absolutely need ReBindRefsPass here.
It would be great to find out why ResolveRefsPass causes the problem. You mentioned that the def_meth
has a more restricted access flag than callee
above. Can you share the relevant input so we can look into the root cause? It's odd that the type inferred def_meth
has a more restricted access. Thx,
Hi I am using redex and get an error
the TRACE is
I test it for several times and found that maybe "ResolveRefsPass" cause the problem
I add the log "TRACE(RESO, 1, "AccessFlag: callee %s , def_meth %s", SHOW(callee->get_access()), SHOW(def_meth->get_access()));" in the code, and it print like this
it means the access flag of callee is "PUBLIC ABSTRACT" and def_meth's access flag is "FINAL", maybe it's why the problem happened.
I am not sure if I am right.
Kindly if you could help me to check it.
Thanks