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

Bug 564987

Summary: Remove pack200
Product: z_Archived Reporter: Sina Madani <sinadoom>
Component: TychoAssignee: Project Inbox <tycho-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: mistria
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=373173
Whiteboard:

Description Sina Madani CLA 2020-07-06 14:39:37 EDT
The pack200 (https://www.eclipse.org/tycho/sitedocs/tycho-extras/tycho-pack200/tycho-pack200b-plugin/plugin-info.html) doesn't work on JDK 14 and newer, since pack200 has been deprecated since Java 11 and has now been removed. This means many builds (e.g. building an Orbit bundle) fail with newer JDKs.
Comment 1 Mickael Istria CLA 2020-07-06 14:42:38 EDT
Many many products and projects are still going to need or use pack200 for some years, as they'll stick to older Java. So we cannot fully remove it from Tycho.
Please open dedicated bugs for actual issues you spot with pack200.
Comment 2 Sina Madani CLA 2020-07-06 14:47:39 EDT
Perhaps at some point, when Java 8 finally dies (it is already end-of-life according to Oracle), this will be re-opened. At least maybe it shouldn't be part of the default package phase, or there should be some logic to check if running on Java 11 or later then skip it.
Comment 3 Mickael Istria CLA 2020-07-06 15:09:22 EDT
(In reply to Sina Madani from comment #2)
> Perhaps at some point, when Java 8 finally dies (it is already end-of-life
> according to Oracle), this will be re-opened. At least maybe it shouldn't be
> part of the default package phase, or there should be some logic to check if
> running on Java 11 or later then skip it.

pack200 is still part of Java 11 that is supported until September 2023.
Comment 4 Sina Madani CLA 2020-07-06 15:12:31 EDT
Ah yes true, perhaps if JDK >= 14 it could skip or give a warning, or both
Comment 5 Mickael Istria CLA 2020-07-06 15:13:39 EDT
(In reply to Sina Madani from comment #4)
> Ah yes true, perhaps if JDK >= 14 it could skip or give a warning, or both

Please try 2.0.0-SNAPSHOT with JDK 14 and report specific bugs when you meet some.