Bug 455963 - Lambda expressions causes Eclipse to hang on Quick Fix
Summary: Lambda expressions causes Eclipse to hang on Quick Fix
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.4.1   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-22 10:43 EST by Tom van den Berge CLA
Modified: 2022-12-17 12:33 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom van den Berge CLA 2014-12-22 10:43:11 EST
To reproduce this problem, enter the following code:

public class Freeze {
	private Collection<Object> collection;
	
	public void method() {
		this.collection.stream().filter(value -> value != null);
	}
}


Then position the cursor at the start of the line containing the lambda expression, and press the key combination for Quick Fix.

Eclipse will hang indefinitely, and must be killed.

It might be related to bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=453523.
Comment 1 Jay Arthanareeswaran CLA 2014-12-23 03:11:10 EST
Which version of eclipse are you using, Tom? I can't reproduce this on master, so could be something about your set up or version of eclipse.
Comment 2 Tom van den Berge CLA 2014-12-23 04:29:58 EST
(In reply to Jayaprakash Arthanareeswaran from comment #1)
> Which version of eclipse are you using, Tom? I can't reproduce this on
> master, so could be something about your set up or version of eclipse.

JDT 3.10.1.v20141112-0800
Comment 3 Jay Arthanareeswaran CLA 2015-01-07 02:44:46 EST
Tom, we fixed few bugs in this area and I believe this one has been fixed. Can you please try out a latest Mars build and see if it works for you as well. Thanks!
Comment 4 Tom van den Berge CLA 2015-01-08 03:40:22 EST
I'm afraid I can't reproduce it anymore with my existing Eclipse Luna, too. Code completion is no longer unresponsive, but it now gives an error message saying that code completion took too long to complete.

So although code completion does not work for me in this situation, it does not result in an unresponsive Eclipse anymore, which still disappointing but acceptable.
Comment 5 Jay Arthanareeswaran CLA 2015-01-08 03:44:12 EST
(In reply to Tom van den Berge from comment #0)
> It might be related to bug
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=453523.

(In reply to Tom van den Berge from comment #4)
> I'm afraid I can't reproduce it anymore with my existing Eclipse Luna, too.
> Code completion is no longer unresponsive, but it now gives an error message
> saying that code completion took too long to complete.

The other bug you mentioned has the same symptoms. Will need to see if they are same. But with your code, though, I don't see any issues.
Comment 6 Eclipse Genie CLA 2020-09-02 16:07:17 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 7 Eclipse Genie CLA 2022-12-17 12:33:07 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.