vscode-java-debug icon indicating copy to clipboard operation
vscode-java-debug copied to clipboard

locate wrong class file when there are two class with same name in different module

Open init-object opened this issue 2 years ago • 1 comments
trafficstars

[provide a description of the issue]

Environment
  • Operating System: MacOS 12.6
  • JDK version: 1.8
  • Visual Studio Code version: 1.73.1
  • Java extension version: Language support for Java ™ for Visual Studio Code v1.13.0
  • Java Debugger extension version: 0.47.0
Steps To Reproduce
  1. 2 same java file in different module (dependency1 dependency2)
  2. app module depend on dependency2

[attach a sample project reproducing the error] expamle project java-debug-test

Current Result

locate wrong java show dependency1 code

Expected Result

locate correct java show dependency2 code

Additional Informations

log: . ____ _ __ _ _ /\ / ' __ _ () __ __ _ \ \ \
( ( )_
_ | '_ | '| | ' / ` | \ \ \
\/ )| |)| | | | | || (| | ) ) ) ) ' |
| .__|| ||| |_, | / / / / =========||==============|/=//// :: Spring Boot :: (v2.3.5.RELEASE)

2022-12-05 16:03:31.081 INFO 87876 --- [ main] com.init.object.App : Starting App on wangkundeMac-Pro.local with PID 87876 (/Users/wangkun/Documents/github/java-debug-test/app/target/classes started by wangkun in /Users/wangkun/Documents/github/java-debug-test) 2022-12-05 16:03:31.087 INFO 87876 --- [ main] com.init.object.App : No active profile set, falling back to default profiles: default 2022-12-05 16:03:32.077 INFO 87876 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8088 (http) 2022-12-05 16:03:32.088 INFO 87876 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] 2022-12-05 16:03:32.089 INFO 87876 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.39] 2022-12-05 16:03:32.166 INFO 87876 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext 2022-12-05 16:03:32.167 INFO 87876 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1002 ms 2022-12-05 16:03:32.390 INFO 87876 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor' 2022-12-05 16:03:32.584 INFO 87876 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8088 (http) with context path '' 2022-12-05 16:03:32.602 INFO 87876 --- [ main] com.init.object.App : Started App in 2.018 seconds (JVM running for 2.713) 2022-12-05 16:03:47.200 INFO 87876 --- [nio-8088-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet' 2022-12-05 16:03:47.200 INFO 87876 --- [nio-8088-exec-1] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet' 2022-12-05 16:03:47.207 INFO 87876 --- [nio-8088-exec-1] o.s.web.servlet.DispatcherServlet : Completed initialization in 7 ms test2

init-object avatar Dec 05 '22 08:12 init-object

thanks for reporting, I can reproduce it, it's a bug.

testforstephen avatar Feb 10 '23 06:02 testforstephen