6945604: wrong error message in CardImpl.java
authorwetmore
Tue, 20 Apr 2010 14:24:06 -0700
changeset 5301 1bc2a3a47839
parent 5300 a291a0bff79f
child 5302 27f1f6b3108a
child 5455 19d2395cfe3e
6945604: wrong error message in CardImpl.java Reviewed-by: mullan
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;
         }