swiftlang / swiftlang/swift-java

Java2Swift: Generalize conformances of Java collection types to Swift sequence protocols

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

Nobody has claimed this yet.

feature:wrap-java good first issue
Dominant language
Swift
Stars
1.2k
Forks
123
Avg merge
1d 7h
Merged PRs (30d)
16

Description

The JavaKitCollection module has a conformance of java.util.List to Swift's Sequence protocol. We should find a way to expand and generalize this so all of the various Java collection types can be treated as Swift sequences.

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

Start with Sources/JavaKitCollection/List+Sequence.swift and inspect how java.util.List currently conforms to Swift's Sequence protocol. Trace the other Java collection types and existing collection abstractions, then define a shared conformance approach; done means the relevant Java collection types can be used as Swift sequences.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, swift
Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.