Udo Borkowski
Udo Borkowski
I am using the Presentation Assistent plugin for quite some time and like it very much. After upgrading to IntelliJ 2021.2.3 however I now get the following stack trace: ```...
In the old code every character read from a file was checked for "line separator" in a quite expensive procedure, involving: - creating a string from the char - calling...
The method `Name.asString()` is frequently used. However, calculating its value can be quite expensive, especially when used with qualified identifiers. In that case calling asString will always create a new...
JavaParser does a very good job in validating a given source code against the Java standard. E.g. it also validates every identifier if it is `strictfp` or `enum` which are...
When analyzing Java code using the JavaParser comparing Name nodes using the equals method is a very frequent operation. This comparison is done through the generic approach implemented in JavaParser...
When trying to run the ResolveTypeInContext example from the book I get an Exception: ``` java.lang.IllegalStateException: The parent of this TypeSolver cannot be itself. at com.github.javaparser.symbolsolver.resolution.typesolvers.ClassLoaderTypeSolver.setParent(ClassLoaderTypeSolver.java:60) ``` It occurs for...
In the chapter "Using the CombinedTypeSolver" of the book the sample code contains lines like this: ``` JarTypeSolver.getJarTypeSolver("jars/library1.jar"), ``` However, `JarTypeSolver.getJarTypeSolver` is deprecated, so the sample code should probably look...
I just bought the book and I am trying out the examples. However I could not compile `ResolveTypeInContext` because `StaticJavaParser.getStaticConfiguration()` is not implemented. Using `StaticJavaParser.getConfiguration()` instead solved the issue. I...
JUnit test to demonstrate the problem reported in issue https://github.com/javaparser/javaparser/issues/3972
I am using JavaParser and JavaSymbolResolver to check Java code for some special kinds of method calls. When processing the method call `stream.collect(...)` in the following code: ``` import java.util.Map;...