From 180290a3e763e5414aeee27c80e9c0260873e335 Mon Sep 17 00:00:00 2001
From: Arjan Tijms
Date: Tue, 14 Mar 2023 19:09:10 +0100
Subject: [PATCH] Fix API signature failure
A public API inner class was modified. This is not allowed according to
the Signature Test rules in the Faces and EE TCKs.
Signed-off-by: Arjan Tijms
---
.../main/java/jakarta/faces/application/FacesMessage.java | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/impl/src/main/java/jakarta/faces/application/FacesMessage.java b/impl/src/main/java/jakarta/faces/application/FacesMessage.java
index a2a88515b3..8b2b3ad215 100644
--- a/impl/src/main/java/jakarta/faces/application/FacesMessage.java
+++ b/impl/src/main/java/jakarta/faces/application/FacesMessage.java
@@ -1,4 +1,5 @@
/*
+ * Copyright (c) 2022, 2023 Contributors to Eclipse Foundation.
* Copyright (c) 1997, 2020 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
@@ -376,7 +377,7 @@ private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundE
* Class used to represent message severity levels in a typesafe enumeration.
*
*/
- public static class Severity implements Comparable {
+ public static class Severity implements Comparable {
// ------------------------------------------------------- Constructors
@@ -417,8 +418,8 @@ private Severity(String newSeverityName) {
* @param other The other object to be compared to
*/
@Override
- public int compareTo(Severity other) {
- return ordinal - other.ordinal;
+ public int compareTo(Object other) {
+ return ordinal - ((Severity) other).ordinal;
}
/**