From b74968a76aec27a0f57eacb64ddb4aa9cd58d23c Mon Sep 17 00:00:00 2001 From: Emil Ivov Date: Mon, 3 Jul 2006 14:22:49 +0000 Subject: [PATCH] Throw an array index out of bounds exception if trying to register more detail instances than allowed by the implementation --- .../protocol/OperationSetServerStoredAccountInfo.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/net/java/sip/communicator/service/protocol/OperationSetServerStoredAccountInfo.java b/src/net/java/sip/communicator/service/protocol/OperationSetServerStoredAccountInfo.java index d367d41b9..117c35cd3 100644 --- a/src/net/java/sip/communicator/service/protocol/OperationSetServerStoredAccountInfo.java +++ b/src/net/java/sip/communicator/service/protocol/OperationSetServerStoredAccountInfo.java @@ -136,9 +136,14 @@ public interface OperationSetServerStoredAccountInfo * class. * @throws OperationFailedException with code Network Failure if putting the * new value online has failed + * @throws java.lang.ArrayIndexOutOfBoundsException if the number of + * instances currently registered by the application is already equal to the + * maximum number of supported instances (@see getMaxDetailInstances()) */ public void addDetail(ServerStoredDetails.GenericDetail detail) - throws IllegalArgumentException, OperationFailedException; + throws IllegalArgumentException, + OperationFailedException, + ArrayIndexOutOfBoundsException; /** * Removes the specified detail from the list of details stored online for