JDK-8147857 : RMIConnector logs attribute names incorrectly
  • Type: Bug
  • Component: core-svc
  • Sub-Component: javax.management
  • Affected Version: 8u71
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2016-01-20
  • Updated: 2016-08-03
  • Resolved: 2016-02-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 JDK 9 Other
8u101 b01Fixed 9Fixed openjdk7uFixed
Description
There is a bug in how RMIConnector logs attribute names which get set via setAttributes().

It's using Collectors.joining() with swapped arguments for the delimiter and the prefix.
Comments
Not a problem in 7 (or 6), they use a simple for-loop to log attribute names, since Collectors were introduced in 8.
28-01-2016

Andreas, please see if this should be fixed in JDK 7 as well
28-01-2016

Review thread: http://mail.openjdk.java.net/pipermail/jdk8u-dev/2016-January/004845.html
21-01-2016

Patch with the reproducer is attached.
20-01-2016