swiftlang / swiftlang/swift-java

[Java2Swift] Code generation crashes for large .jar files

Open
#264 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Swift
Stars
1.2k
Forks
123
Avg merge
1d 7h
Merged PRs (30d)
16

Description

The SwiftJavaPlugin tool crashes for large .jar files.

[debug][swift-java] Writing Java class 'android.drm.DrmInfoRequest' translation to '/Users/coleman/Developer/Android/.build/plugins/outputs/android/AndroidKit/destination/SwiftJavaPlugin/generated/DrmInfoRequest.swift'... done.
zsh: illegal hardware instruction   --module-name AndroidKit --output-directory  --depends-on  --depends-on  

java2swift.log

build.log

Archive.zip

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 by reproducing the crash in SwiftJavaPlugin with the provided Archive.zip and review java2swift.log and build.log, focusing on processing large .jar files. Done means the tool completes code generation for the supplied archive without the illegal hardware instruction crash.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, swift
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.