Then, we have to modify the source and recompile it ?
When will be released a new version without this bug?
[EMAIL PROTECTED] wrote:
> This is a bug in OCF 1.1.1 PCSC10CardTerminal which was first reported by Uwe
> Steinmueller at Infineon.
> Try the following change and let me know if it works for you:
>
> class com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal.java:
>
> /** This method is normally used by the <tt>CardTerminalRegistry</tt> to
> * generate the <tt>OpenCard</tt> events if the Slot implementation does
> * not support events itself.
> */
> public void poll()
> throws CardTerminalException {
>
> if (!closed) {
> try {
> boolean newStatus = isCardPresent(0);
> if (cardInserted != newStatus) {
> itracer.debug("poll", "status change");
> cardInserted = !cardInserted;
> // ... notify listeners
> if (cardInserted) {
> cid = new CardID(this.slots()[0], cachedATR); // U.Steinmueller
> Infineon
> cardInserted(0);
> } else {
> cardRemoved(0);
> }
> } else {
> // ... no change took place
> itracer.debug("poll", "no status change");
> }
> }
> catch (CardTerminalException cte) {
> itracer.debug("poll", cte);
>
> // make sure the CardTerminalException is
> // propagated to listeners waiting for a card
> cardInserted(0);
> }
> }
> }
>
> Peter Bendel, Smartcard Solutions, Tel.: +49-7031-16-4650, Fax -4888
> Dept. 4969, Bldg. 7103-01, Room 01-109 Lotus Notes: bed@ibmde
> IBM Pervasive Computing Division Internet: [EMAIL PROTECTED]
>
> Please visit the OpenCard Framework's homepage at http://www.opencard.org
>
> ---
> > Visit the OpenCard web site at http://www.opencard.org/ for more
> > information on OpenCard---binaries, source code, documents.
> > This list is being archived at http://www.opencard.org/archive/opencard/
---
> Visit the OpenCard web site at http://www.opencard.org/ for more
> information on OpenCard---binaries, source code, documents.
> This list is being archived at http://www.opencard.org/archive/opencard/