javaparser-visited icon indicating copy to clipboard operation
javaparser-visited copied to clipboard

Code samples for the book "JavaParser: Visited" https://leanpub.com/javaparservisited

Results 11 javaparser-visited issues
Sort by recently updated
recently updated
newest added

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...

The example for `ResolveTypeInContext` in the book throws an exception > [reflectionTypeSolver.setParent(reflectionTypeSolver);](https://github.com/javaparser/javaparser-visited/blob/master/src/main/java/org/javaparser/examples/chapter5/ResolveTypeInContext.java#L23) ``` Exception in thread "main" java.lang.IllegalStateException: The parent of this TypeSolver cannot be itself. at com.github.javaparser.symbolsolver.resolution.typesolvers.ClassLoaderTypeSolver.setParent(ClassLoaderTypeSolver.java:60) ``` Presumably...

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...

https://github.com/javaparser/javaparser-visited/pull/32

p11 has: > this means that you can define only the method to handle a certain type of nodes (e.g. field declarations), while your visitor will not do anything with...

p11 has: > completed all the previous steps correctly executing main propose: s/correctly executing/correctly, executing/

1. p 11 has a ``` java CompilationUnit cu = StaticJavaParser.parse(new File(FILE_PATH)); ``` ... p 12 describes that invokcation as the StaticJavaParser taking a FileInputStream (which you don't have to...

The coding style within the book seems to be exclusively in favour of using the static parser. If an edit is considered, perhaps consider adding some examples which show the...

Actually I'm looking at the documentation and cannot find any method of setting up the Java version; e.g., I want to parse (maybe) Java 7, then... how to?. I'm beginner,...