Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for checkException (0.47 sec)

  1. src/test/java/jcifs/smb/SmbCopyUtilTest.java

                w.wait(100);
            }
    
            // Wait a bit more to ensure exception is captured
            Thread.sleep(100);
    
            // Act + Assert: checkException should throw the SmbException captured by the thread
            assertThrows(SmbException.class, w::checkException);
    
            // Stop the thread
            synchronized (w) {
                w.write(new byte[0], -1, out);
            }
            w.join(2000);
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbCopyUtil.java

                    int i = 0;
                    long off = 0L;
                    while (true) {
                        final int read = fis.read(b[i]);
                        synchronized (w) {
                            w.checkException();
                            while (!w.isReady()) {
                                try {
                                    w.wait();
                                } catch (final InterruptedException ie) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 16.6K bytes
    - Viewed (0)
Back to top