changeset 2311:d8ad2da3ecf3

6945604: wrong error message in CardImpl.java Reviewed-by: mullan
author wetmore
date Tue, 20 Apr 2010 14:24:06 -0700
parents 97fb6f6d230a
children 884df20e9cce edde2f60415b
files src/share/classes/sun/security/smartcardio/CardImpl.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/security/smartcardio/CardImpl.java	Tue Apr 20 19:30:31 2010 +0800
+++ b/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;
         }