Skip to content

Commit 8352488

Browse files
committed
RADME: about JavaStdlib targets
1 parent b280177 commit 8352488

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Extracted Java Modules
2+
3+
This directory contains Swift bindings for common Java standard library packages.
4+
These pre-built bindings to solve a circular dependency problem - SwiftJava tools need these types to process and generate other bindings.
5+
6+
You can also use these bindings directly in your SwiftJava programs to call Java classes without having to generate wrappers each time.
7+
8+
The naming follows this pattern: Java package names become Swift target names. Example: `java.lang.util` becomes `JavaLangUtil`.
9+
10+
Since Swift doesn't have namespaces like Java, all types appear at the top level in Swift. To avoid naming conflicts,
11+
some types may be prefixed with 'J' (e.g. `JList` to avoid confusion with Swift native types).
12+
13+
To see which Java types are included and any naming changes, check the `swift-java.config` file in each module.

0 commit comments

Comments
 (0)