Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
原有的代码是支持kotlin的,kotlin里的Class::method语法走的是这个分支,并且可以正常工作
但是如果加一层引用,比如
val dtoGetAddressesRef=UserDTO::getAddresses
,用这个语法,拿到的method name就会包含类似于$lambda1
的后缀(这段代码在test项目里可以找到)这个后缀会导致fieldMap.get返空,产生报错,报错位置是
mybatis-plus-join-core/1.4.2.2/mybatis-plus-join-core-1.4.2.2-sources.jar!/com/github/yulichang/wrapper/interfaces/QueryLabel.java:54
我对kotlin那些语法糖展开的了解也比较有限,如果实现有误,或者有更好的实现,please feel free to comment and I will be grateful.