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

Bug 568476

Summary: [search] search results does not show internal record methods
Product: [Eclipse Project] JDT Reporter: Kalyan Prasad Tatavarthi <kalyan_prasad>
Component: CoreAssignee: Vikas Chandra <Vikas.Chandra>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3    
Version: 4.18   
Target Milestone: 4.18 M3   
Hardware: PC   
OS: Windows 10   
Whiteboard:
Attachments:
Description Flags
seems to work with Build id: I20201103-1800 none

Description Kalyan Prasad Tatavarthi CLA 2020-11-03 03:09:32 EST
public class cls1  {
    record R() {
	public int foo() {
		return 0;
	}
    }
}

create a class as above in a Java 15 project with preview enabled.

Now from MenuBar select Search > Java

A search dialog comes up. 
In the dialog, set search string as foo
with options 
Search For : Method
Limit To: Declarations

and press search button.

expected: the above created method foo in record R should be shown in search results.

Current Behavior: The method foo in recoord R is not shown.
Comment 1 Vikas Chandra CLA 2020-11-05 05:27:16 EST
Created attachment 284679 [details]
seems to work with Build id: I20201103-1800

Can you try again and find out if something has been done different in the case where it works ( or doesnt work)
Comment 2 Kalyan Prasad Tatavarthi CLA 2020-11-13 05:24:21 EST
(In reply to Vikas Chandra from comment #1)
> Created attachment 284679 [details]
> seems to work with Build id: I20201103-1800
> 
> Can you try again and find out if something has been done different in the
> case where it works ( or doesnt work)

Works for me too. So Closing this bug.