What is the difference between Java CPU and PSU Releases, eg JDK SE 8u101 and JDK SE 8u102

27

6

I'm installing JDK SE 8u101 on my mac for Android Studio. Is there any reason I should pick 8u102 vs. 8u101? Are there any noticeable differences in them? Looks like they were released at the same time.

wordsforthewise

Posted 2016-08-05T05:54:29.577

Reputation: 402

Answers

22

Are there any noticeable differences in them?

  • 8u101 contains security updates. This is a Critical Patch Update (CPU).

  • 8u102 contains the security updates and new features. This is a Patch Set Update (PSU). There is also a known bug in 8u101 which is resolved in 8u102.

Release notes:


Java CPU and PSU Releases Explained

Which Java version should I choose: the CPU or the PSU?

Oracle strongly recommends that all Java SE users upgrade to the latest CPU release available for a release family. Most users should choose the CPU release.

Users should only use the corresponding PSU release if they are being impacted by one of the additional bugs fixed in that version as noted in the release notes.

The subsequent CPU release will contain all of the fixes from the current PSU. For this reason, organizations should test the current PSU in their environment in anticipation of these fixes being included in the next CPU.

What is the difference between a Java CPU and PSU release?

Java SE Critical Patch Updates (CPU) contain fixes to security vulnerabilities and critical bug fixes. Oracle strongly recommends that all Java SE users upgrade to the latest CPU releases as they are made available. Java SE CPU releases are odd numbered versions (i.e. 7u71, 7u65 – see more on Java SE version numbering schemes here).

Java SE Patch Set Updates (PSU) contain all of fixes in the corresponding CPU, as well as additional non-critical fixes. Java PSU releases should only be used if you are being impacted by one of the additional bugs fixed in that version. The release notes call out the additional fixes available in Java SE PSU releases.

Source Java CPU and PSU Releases Explained

DavidPostill

Posted 2016-08-05T05:54:29.577

Reputation: 118 938

2So the short answer is: choose 8u102, or in most cases, the highest numbered version. – wordsforthewise – 2016-08-09T01:02:05.077

5@wordsforthewise No, the opposite. If you read the answer carefully Oracle recommends the lower numbered version. "Most users should choose the CPU release." – DavidPostill – 2016-08-09T07:50:46.103

4

I see, but it seems like the PSU has fixed a bug in the CPU and has more features, and would be a better choice, right? I wonder what the bug fix in the PSU is. Is it this: When a large TLS (Thread local storage) size is set for Threads, the JVM results in a stack overflow exception. ?

Also, that's annoyingly confusing that they use the acronym 'CPU'.

– wordsforthewise – 2016-08-09T21:33:03.263

5@wordsforthewise "JRE 8u101 is not recognized by Internet Explorer (IE) when using static class ID When a static class id is used to launch an applet or web start application while using JRE 8u101, users will get an unwanted dialogue box stating that they either use the latest JRE or cancel the launch even though they have installed and are using the latest JRE (JRE 8u101)". - "To work around this issue, users can do one of the following two things: (1) Hit launch with the latest version (8u101) and ignore the warning. (2) Install JRE 8u102 instead of JRE 8u101 to avoid this issue." – DavidPostill – 2016-08-09T21:39:41.837

2Ok. Kind of a silly bug, who uses IE? Haha – wordsforthewise – 2016-08-11T10:34:14.487

I'm looking at 1.8u161 and u162 and see that 161 has a lot of new features and a bugfix, while 161 only has the same bugfix. Also, neither in the release notes or the download page is any mention of which is CPU or PSU. Did I overlook something? – David Balažic – 2018-01-19T14:10:13.637

@DavidBalažic From my answer "Java SE CPU releases are odd numbered versions" – DavidPostill – 2018-01-19T18:56:27.013

@DavidPostill I made a typo in my previous comment, the correct text is "161 has a lot of new features and a bugfix, while 162 only has the same bugfix." So the odd version (161) has new features. – David Balažic – 2018-01-20T21:51:02.430

@DavidBalažic Hmm. shrug. Looks like Oracle has changed their numbering system then ... – DavidPostill – 2018-01-20T21:58:31.160