Skip to content

Commit 799fc68

Browse files
committed
Remove experimental JRuby-compatible Java interop
1 parent d91ec17 commit 799fc68

40 files changed

+12
-3341
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ New features:
44

55
* `Process.clock_getres` has been implemented.
66

7+
Changes:
8+
9+
* Our experimental JRuby-compatible Java interop has been removed - use
10+
`Polyglot` and `Java` instead.
11+
712
# 1.0 RC 14
813

914
Updated to Ruby 2.6.2.

doc/contributor/interop.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ details.
2727
* [Notes on coercion](#notes-on-coercion)
2828
* [Notes on source encoding](#notes-on-source-encoding)
2929

30-
Also see the separate document on
31-
[JRuby-compatible Java interop](../user/jruby-java-interop.md).
32-
3330
## How Ruby responds to messages
3431

3532
### `IS_EXECUTABLE`

doc/user/compatibility.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,9 @@ understand. The process should behave identically to MRI.
233233

234234
#### Ruby to Java interop
235235

236-
JRuby's Java interop API is not implemented far enough to be used. We provide an
237-
alternate polyglot API for interoperating with multiple languages, including
238-
Java, instead.
236+
TruffleRuby does not support the same interop to Java interface as JRuby does.
237+
We provide [an alternate polyglot API](polyglot.md) for interoperating with
238+
multiple languages, including Java, instead.
239239

240240
#### Java to Ruby interop
241241

doc/user/jruby-java-interop.md

Lines changed: 0 additions & 109 deletions
This file was deleted.

doc/user/jruby-migration.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -351,10 +351,6 @@ TruffleRuby provides its own scheme for Java interop that is consistent for
351351
use from any GraalVM language, to any other GraalVM language. This isn't
352352
compatible with existing JRuby Java interop, so you will need to migrate.
353353

354-
TruffleRuby does [experimentally support](jruby-java-interop.md) some of JRuby's
355-
approach to Java interop, but we aren't sure how complete this will be so we do
356-
not recommend using it at the moment. `require 'java'` to use it.
357-
358354
Polyglot programming in general is [documented elsewhere](polyglot.md) - this
359355
section describes it relative to JRuby.
360356

@@ -400,9 +396,9 @@ notation.
400396

401397
### Require Java
402398

403-
There is no need to `require 'java'` in TruffleRuby. However, you do need to run
404-
in `--jvm` mode. This is only available in GraalVM - not in the standalone
405-
distribution installed by Ruby version managers and installers.
399+
Do not `require 'java'` in TruffleRuby. However, you do need to run in `--jvm`
400+
mode. This is only available in GraalVM - not in the standalone distribution
401+
installed by Ruby version managers and installers.
406402

407403
### Referring to classes
408404

@@ -444,7 +440,7 @@ TruffleRuby at the moment you use the `-classpath` JVM flag as normal.
444440

445441
### Additional Java-specific methods
446442

447-
JRuby defines these methods on Java objects.
443+
JRuby defines these methods on Java objects, use these equivalents instead.
448444

449445
`java_class` - use `class`.
450446

doc/user/polyglot.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ using the Truffle interop API, and exactly how Ruby is matched to this API.
2626
* [Threading and interop](#threading-and-interop)
2727
* [Embedded configuration](#embedded-configuration)
2828

29-
Also see the separate document on
30-
[JRuby-compatible Java interop](jruby-java-interop.md).
31-
3229
## Loading code written in foreign languages
3330

3431
`Polyglot.eval(id, string)` executes code in a foreign language identified by

lib/truffle/java.rb

Lines changed: 0 additions & 61 deletions
This file was deleted.

lib/truffle/java/array_java_proxy.rb

Lines changed: 0 additions & 68 deletions
This file was deleted.

lib/truffle/java/class_cache.rb

Lines changed: 0 additions & 45 deletions
This file was deleted.

lib/truffle/java/classpath.rb

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)