Compiler compliance: Behind the scenes [message #1862712] |
Thu, 21 December 2023 18:43  |
Eclipse User |
|
|
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.09090 seconds