Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Compiler compliance: Behind the scenes
Compiler compliance: Behind the scenes [message #1862712] Thu, 21 December 2023 18:43 Go to next message
Eclipse UserFriend
It is possible (despite not being a good idea) to choose a Compiler compliance level greater than the highest version offered by the current JRE if the JRE is old (e.g.: Compiler Compliance Java 12, installed JRE 1.8).

I tried to find out how Eclipse finds the entries of the Compiler Compliance dropout menu and generates the GUI dropout list, but failed. The eclipse.platform Git repository contains many .pref and .htm files, but none of these seems to be related to the real source code generating the menu and its entries - many properties, no action. I had expected something like "generate_sublist(currently_known_java_versions, x -> x < core.compiler.compliance) or similar, but I had no luck searching the repository eclipse.platform (hopefully assuming that I have searched within the correct subproject eclipse.platform).

My questions: How does Eclipse generate this specific menu entry and how does it collect the dropout menu items of the property ,,Compiler compliance level"? Where do I have to search? And last but not least: How does Java act during class file generation when confronted with a Compiler Compliance JRE strictly higher than the installed JRE?

Many thanks in advance

Friedrich
Re: Compiler compliance: Behind the scenes [message #1862716 is a reply to message #1862712] Fri, 22 December 2023 01:56 Go to previous message
Eclipse UserFriend
All direct JDT things come from repositories in this organization:

https://github.com/eclipse-jdt

The Oomph setup is the easiest way to clone all the JDT projects int a workspace free of compiler errors for analysis, for prototyping of changes and for contribution:

https://github.com/eclipse-jdt/.github/blob/main/CONTRIBUTING.md#create-an-eclipse-development-environment

The eclipse-platform also has an Oomph setup:

https://github.com/eclipse-platform/.github/blob/main/CONTRIBUTING.md#creating-an-eclipse-development-environment

That one includes the setups for the Platform (UI and base frameworks) Equinox (OSGi runtime), PDE, and JDT. These are the components that are used to produce the Eclipse Project's Eclipse SDK downloads.

I don't get the impression that anyone on the JDT team spends much time looking at this forum. You could ask questions here instead:

https://github.com/eclipse-jdt/eclipse.jdt.core/discussions
Previous Topic:Using within WSL via Language Serve Protocol (like VS Code does)?
Next Topic:eclipse launch fails on installing ibm liberty developer tools plugin
Goto Forum:
  


Current Time: Mon Jul 14 06:15:33 EDT 2025

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

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

Back to the top