Bug 569515 - .classpath is being changed inappropriately on save altering JDK version
Summary: .classpath is being changed inappropriately on save altering JDK version
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.17   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-06 19:24 EST by Jeffrey Bennett CLA
Modified: 2022-11-27 01:21 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeffrey Bennett CLA 2020-12-06 19:24:15 EST
I am using JDK11 to compile code that is source=1.8, target=1.8 and release=1.8.  That is, I am using JDK11 to produce code that can still function in a JRE8 world.

My existing .classpath file indicates:
	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11">

On save, it is being altered to:
	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">


-- Configuration Details --
Product: Eclipse IDE 4.17.0.20200910-1200 (org.eclipse.epp.package.jee.product)Installed Features:
 org.eclipse.jdt 3.18.500.v20200902-1800
Versioning Plugin:
 org.eclipse.platform 4.17.0.v20200902-1800
Comment 1 Jeffrey Bennett CLA 2020-12-06 20:07:26 EST
Possibly related...

This value is being changed from enabled to disabled in org.eclipse.jdt.core.prefs:
org.eclipse.jdt.core.compiler.release
Comment 2 Eclipse Genie CLA 2022-11-27 01:21:13 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.