# HG changeset patch # User igerasim # Date 1401313850 -14400 # Node ID c46acbd3c30b8d2fe7f7019b0395971a31b093d3 # Parent c094ffea7aeed86814733acbeec622b6e69e19df 7047033: (smartcardio) Card.disconnect(boolean reset) does not reset when reset is true Reviewed-by: valeriep diff -r c094ffea7aee -r c46acbd3c30b jdk/src/share/classes/sun/security/smartcardio/CardImpl.java --- a/jdk/src/share/classes/sun/security/smartcardio/CardImpl.java Tue May 27 10:27:51 2014 +0100 +++ b/jdk/src/share/classes/sun/security/smartcardio/CardImpl.java Thu May 29 01:50:50 2014 +0400 @@ -246,7 +246,7 @@ } checkExclusive(); try { - SCardDisconnect(cardId, (reset ? SCARD_LEAVE_CARD : SCARD_RESET_CARD)); + SCardDisconnect(cardId, (reset ? SCARD_RESET_CARD : SCARD_LEAVE_CARD)); } catch (PCSCException e) { throw new CardException("disconnect() failed", e); } finally {