changeset 5301:1bc2a3a47839

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