MyWorldLLC/Chipmunk

Module: JVM interop library

Closed this issue · 1 comments

Chipmunk resolves imports through a module mechanism, which requires explicitly exposing either Chipmunk sources or native (Java) code to the compiler & VM. This does not seamlessly work with Java code, since Java's packages and modules are very different from Chipmunk modules. This library will allow directly importing and constructing Java classes.

Example:

import chipmunk.java.jvmImport
...
var file = jvmImport('java.io.File').new('/path/to/file')

Resolved by a307909