Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 561388

Summary: Doesn't resolve method parameters in debug mode for java 1.8
Product: [Eclipse Project] JDT Reporter: Gayan Perera <gayanper>
Component: DebugAssignee: JDT-Debug-Inbox <jdt-debug-inbox>
Status: CLOSED INVALID QA Contact:
Severity: critical    
Priority: P3 CC: loskutov, mistria, sarika.sinha
Version: 4.15   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Attachment none

Description Gayan Perera CLA 2020-03-23 15:18:26 EDT
Created attachment 282202 [details]
Attachment

When i try to debug JDK classes the source parameters names and debug variables doesn't match.
You can see in the attachment that the containsAll method parameter <c> is not <c> in the variables view. its <arg0>. I have attached the source code to my jdk as well. This happens only in java 1.8, on jdk 9 and above it works as expected.
Comment 1 Andrey Loskutov CLA 2020-03-23 15:23:06 EDT
JDK 8 is compiled without debug attributes.
Comment 2 Gayan Perera CLA 2020-03-23 15:58:52 EDT
@Andrey even openjdk ?
Comment 3 Andrey Loskutov CLA 2020-03-23 16:22:17 EDT
(In reply to Gayan Perera from comment #2)
> @Andrey even openjdk ?

It depends on the compilation process. If JDK classes were compiled without debug attributes, it doesn't matter who the vendor is.