Skip to content

Commit

Permalink
JConsole's MBean tab is blank after JMX Subject Delegation removal.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinjwalls committed May 15, 2024
1 parent c4867c6 commit 7f76b56
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -971,8 +971,14 @@ public Integer[] addNotificationListeners(ObjectName[] names,
if (names == null || filters == null) {
throw new IllegalArgumentException("Got null arguments.");
}
// Accept an array of delegationSubjects from e.g. earlier JDKs,
// but throw if it contains any non-null values.
if (delegationSubjects != null) {
throw new UnsupportedOperationException("Subject Delegation has been removed.");
for (Subject s: delegationSubjects) {
if (s != null) {
throw new UnsupportedOperationException("Subject Delegation has been removed.");
}
}
}
Subject[] sbjs = new Subject[names.length];
if (names.length != filters.length || filters.length != sbjs.length) {
Expand Down

0 comments on commit 7f76b56

Please sign in to comment.