Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update java version #124

Open
jukzi opened this issue Aug 12, 2024 · 0 comments
Open

update java version #124

jukzi opened this issue Aug 12, 2024 · 0 comments

Comments

@jukzi
Copy link

jukzi commented Aug 12, 2024

JDT just dropped support for java <1.8
it would be good if ECJ could update all the used java version so that it can be still be compiled with current eclipse.
See eclipse-platform/.github#220 for current compilation error.

To update java version from <1.8 to 17 a regular expression search and replace could be used:

in org.eclipse.jdt.core.prefs:

   (org.eclipse.jdt.core.compiler.codegen.targetPlatform|org.eclipse.jdt.core.compiler.compliance|org.eclipse.jdt.core.compiler.source)=.*
-> $1=17

in .classpath:

   org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/([^"]*)
-> org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17

However i don't know if you want to update historic projects too - like for example doc/tutorials/EclipseCON 2009 and which bundles need a version bump. So i can provide a dump search&replace but you will probably need to adopt it to your needs.

jukzi pushed a commit to jukzi/ecf that referenced this issue Aug 12, 2024
fixes eclipse#124

regular expression search and replace:

in org.eclipse.jdt.core.prefs:
   (org.eclipse.jdt.core.compiler.codegen.targetPlatform|org.eclipse.jdt.core.compiler.compliance|org.eclipse.jdt.core.compiler.source)=.*
-> $1=17

in .classpath:
   org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/([^"]*)
-> org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant