swiftlang / swiftlang/swift-java

[ffm] jextract support importing `throws` functions

Open
#34 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature:jextract mode:ffm
Dominant language
Swift
Stars
1.2k
Forks
123
Avg merge
1d 7h
Merged PRs (30d)
16

Description

Functions in swift that are throwing have a special calling convention so we'll need the help of thunks on the Swift side for this.

Once we have those, the imported methods should mirror the throwing behavior and be declared checked throwing in Java (?).

Typed throws would be step 2 of this.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named. Begin by tracing the jextract import path and the Swift-side thunk work described in the issue; done means throwing Swift functions import with matching behavior and are declared as checked-throwing Java methods, with typed throws left for a later step.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, swift
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.