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

Bug 576556

Summary: Cannot install Java 17 Patch when Groovy Development Tools are installed
Product: [Eclipse Project] JDT Reporter: Sverre Moe <sverre.moe>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED NOT_ECLIPSE QA Contact:
Severity: normal    
Priority: P3 CC: jarthana, twolf
Version: 4.22   
Target Milestone: 4.22 M2   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Sverre Moe CLA 2021-10-11 06:11:17 EDT
When the "Groovy Development Tools" are installed, it is not possible to install the Java 17 Patch on Eclipse 2021-09.

Reproduce:
1. Start a fresh Eclipse 2021-09 installation
2. Install the Groovy Development Tools
3. Install the Java 17 Patch

Step three will fail and show this:
The installation cannot be completed as requested
Choose one of the following alternate solutions.
1. Keep my installation the same and modify the items being installed to be compatible
2. Update my installation to be compatible with the items being installed
3. Show original error and build my own solution
Comment 1 Thomas Wolf CLA 2021-10-11 07:16:57 EDT
The Groovy Development Tools patch the JDT compiler, so they depend on a particular JDT compiler version. The Java 17 support wants to install a different JDT compiler version.

This is not a problem of JDT, but one of the Groovy Development Tools (provided by Pivotal I think). I guess it's just not a supported use case.

You'd also run into troubles if you installed different tools that patch the JDT compiler. I've never tried it, but I would suspect installing AspectJ and GDT into the same Eclipse also is not going to work well.
Comment 2 Sverre Moe CLA 2021-10-11 09:28:43 EDT
Ok, So not a problem with Eclipse JDT, but the Plugins, in this case Groovy Development Tools.

An issue has been filed for that project to add support for Java 17.
https://github.com/groovy/groovy-eclipse/issues/1303

I guess this issue can then be closed.