# HG changeset patch # User wetmore # Date 1271798646 25200 # Node ID 1bc2a3a478399793e095a9ce89e46d99c434d584 # Parent a291a0bff79f4923a6d87b28940bab38c3cd31b6 6945604: wrong error message in CardImpl.java Reviewed-by: mullan diff -r a291a0bff79f -r 1bc2a3a47839 jdk/src/share/classes/sun/security/smartcardio/CardImpl.java --- a/jdk/src/share/classes/sun/security/smartcardio/CardImpl.java Tue Apr 20 19:30:31 2010 +0800 +++ b/jdk/src/share/classes/sun/security/smartcardio/CardImpl.java Tue Apr 20 14:24:06 2010 -0700 @@ -1,5 +1,5 @@ /* - * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 2005-2010 Sun Microsystems, Inc. All Rights Reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -214,7 +214,7 @@ SCardEndTransaction(cardId, SCARD_LEAVE_CARD); } catch (PCSCException e) { handleError(e); - throw new CardException("beginExclusive() failed", e); + throw new CardException("endExclusive() failed", e); } finally { exclusiveThread = null; }