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
record in an interface throw IllegalArgumentException #4303
Comments
It seems to be a bug in the symbol solver. Records resolution is not fully supported in Symbol Solver. |
Thank you for the reply, will JP fix the issue next version? |
The integration of Records resolution is a fairly lengthy process. It is very likely that this issue will not be corrected in the next version. |
Thank you for your reply. |
Related to #3556 (comment) |
I'm not a developer of JP, but if I want to fix this, can anyone give me some guidance on how to do it and an estimate of how much time it takes? |
Thank you for your offer, but it's currently under development. |
My Environment
javaparser 3.25.8
Current Behavior
When try to resolve a
MethodCallExpr
got an exception.Here is my test code for reproduce.
IUtil
, and it has a record member.Util
implementIUtil
.Test
has a method callUtil.create()
.The test code will throw an exception
I tried to debug
JP
. I found when resolve the method call(Util.create()
),JP
will getUtil
ancestors and try get internal types.In
JavaParserTypeAdapter
, the recordWrapperRecord
inIUtil
is instance ofRecordDeclaration
, and then exception occurred.My Question
I want to know what did i wrong if i try to get the method qualified signature? Or dose
JP
not support parsingrecord
in interfaces?The text was updated successfully, but these errors were encountered: