Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » This code confuses eclipse
This code confuses eclipse [message #1805413] Sun, 14 April 2019 18:47
Arnold Minde is currently offline Arnold MindeFriend
Messages: 1
Registered: April 2019
Junior Member
Weird things happens if I open a java file with the following code in eclipse:

import java.util.function.Consumer;

public class Test {
	
	public static void create(Consumer<String> s) {
		
	}
	public static void main(String[] args) {
		create((new Test()::accept);
	}
}


First, Eclipse does not highlight the syntax error [missing bracket within main]. Then building gets stack at 95% with high CPU usage. Then weird things happen whenever the file is open, even with no building going on. I can not even copy the code to clipboard from Eclipse.
Previous Topic:Java&CPLEX on Mac
Next Topic:Test discovery very slow with JDK11
Goto Forum:
  


Current Time: Thu Sep 12 06:05:45 GMT 2024

Powered by FUDForum. Page generated in 0.06694 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top