Skip to content

Conversation

@ShahzaibIbrahim
Copy link
Contributor

As per contract of org.eclipse.swt.graphics.Image.Image(Device, InputStream), SWT Error - ERROR_IO should be thrown if IOException is caught while reading the inputStream.

As per contract of org.eclipse.swt.graphics.Image.Image(Device,
InputStream), SWT Error - ERROR_IO should be thrown if IOException is
caught while reading the inputStream.
@github-actions
Copy link
Contributor

Test Results

  176 files  ±0    176 suites  ±0   27m 28s ⏱️ -14s
4 677 tests ±0  4 655 ✅ ±0  22 💤 ±0  0 ❌ ±0 
  482 runs  ±0    476 ✅ ±0   6 💤 ±0  0 ❌ ±0 

Results for commit 1a31db5. ± Comparison against base commit bc0f6ba.

Copy link
Contributor

@HeikoKlare HeikoKlare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This obviously adapts the implementation to the existing contract. Great to also see a test for the behavior.
It seems like the behavior used to be correct but was accidentally modified for Cocoa with:

This change corrects that.

@HeikoKlare HeikoKlare merged commit 8734a14 into eclipse-platform:master Jan 13, 2026
23 checks passed
@HeikoKlare HeikoKlare deleted the master-584 branch January 13, 2026 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrong SWT Error in org.eclipse.swt.graphics.Image.Image(Device, InputStream) for IOException

2 participants