I wonder what is the upper version of Java that is...
# general
b
I wonder what is the upper version of Java that is supported. I can not execute Pants on a Java 21 project, because of strange parsing errors:
Copy code
ProcessExecutionFailure: Process 'Java source dependency analysis failed.' failed with exit code 899.
stdout:

stderr:
com.github.javaparser.ParseProblemException: (line 46,col 22) Parse error. Found  "obj" <IDENTIFIER>, expected one of  "!=" "%" "&" "&&" "(" "*" "+" "," "-" "->" "/" ":" "<" "<=" "==" ">" ">=" "?" "^" "instanceof" "|" "||"
f
We probably need to upgrade the javaparser dependency.
h
Hi @billowy-vegetable-62104! If you could clone the Pants repo and upgrade that javaparser dep to some more recent version that supports Java 21, you can then test it out on your repo by running
PANTS_SOURCE=path/to/your/pants/repo pants ...
in your repo. That would be really helpful, thanks!
b
Will give it a try tonight, thx