-
Notifications
You must be signed in to change notification settings - Fork 220
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
Found bug in JUnitEntryPoints #1373
Comments
Thanks for the report @el-nino2020! Could you submit a pull request with your fix? That would be great. |
In fact, I just copied the source code of |
Hm. I don't see where that is removed. I see it added here: WALA/core/src/main/java/com/ibm/wala/types/TypeName.java Lines 314 to 315 in 2f79c10
|
Ah, but that's in I guess different representations may not be prefixed with |
When using junit4 annotations, the static method
make(IClassHierarchy cha)
can not return any entrypoint.I found that
isTestEntryPoint(TypeName typeName)
might be wrong:For the class
Lorg/abc/Main
,typeName.getPackage()
will returnorg.abc
and delete the startingL
. WhilejvmToReadableType
depends on thisL
to parse the className. Without the startingL
,jvmToReadableType
will return an empty string.So, I changed the method to the following:
And it works.
Note that in my case, I have no inner classes to test. So I just changed the code by the comment.
The text was updated successfully, but these errors were encountered: