For a method invocation dummyObject.<Type>test(), it is expected that AST representation includes dummyObject
as the qualifier and test as the member (method call). However, Javalang would parse dummyObject as the member and ignores the method call at all.
Version
javalang 0.13.0
Python 3.8
Minimal example
import javalang
code = """
public class MinimalExample {
public static void testMinimal(Object dummyObject){
TestResult result = dummyObject.<TestResult>dummyFunction();
}
}
"""
tree = javalang.parse.parse(code)
print(tree.types[0].body[0].body[0])
Issue
For a method invocation
dummyObject.<Type>test()
, it is expected that AST representation includesdummyObject
as the qualifier andtest
as the member (method call). However, Javalang would parsedummyObject
as the member and ignores the method call at all.Version
javalang 0.13.0 Python 3.8
Minimal example
Output: