Currently, the source paths that appear in AppMaps aren't correct. They're missing the portion of the path from the project root to the first package directory. For example, if the source file is in src/main/java/com/example/HelloWorld.java, the path for com.example.HelloWorld will be com/example/HelloWorld.java.
The Java compiler doesn't record the file system path in a class file, so there's no way to retrieve a path that's guaranteed to be correct. However, the agent can do a better job guessing what the path is.
Currently, the source paths that appear in AppMaps aren't correct. They're missing the portion of the path from the project root to the first package directory. For example, if the source file is in
src/main/java/com/example/HelloWorld.java
, the path forcom.example.HelloWorld
will becom/example/HelloWorld.java
.The Java compiler doesn't record the file system path in a class file, so there's no way to retrieve a path that's guaranteed to be correct. However, the agent can do a better job guessing what the path is.