Skip to content

Commit 627f846

Browse files
committed
[GR-38266] Java type and class object should not be identical.
1 parent 7f9765a commit 627f846

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/truffle/interop/java_class_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@
1414
it "produces the same class as java_type for objects" do
1515
big_integer_class = Truffle::Interop.java_type("java.math.BigInteger")
1616
big_integer = big_integer_class.new("14")
17-
big_integer.getClass.equal?(big_integer_class).should be_true
17+
big_integer.getClass.equal?(big_integer_class[:class]).should be_true
1818
end
1919

2020
it "produces the same class as java_type for arrays of objects" do
2121
big_integer_array_class = Truffle::Interop.java_type("java.math.BigInteger[]")
2222
big_integer_array = big_integer_array_class.new(3)
23-
big_integer_array.getClass.equal?(big_integer_array_class).should be_true
23+
big_integer_array.getClass.equal?(big_integer_array_class[:class]).should be_true
2424
end
2525

2626
it "produces the same class as java_type for arrays of primitives" do
2727
int_array_class = Truffle::Interop.java_type("int[]")
2828
int_array = int_array_class.new(3)
29-
int_array.getClass.equal?(int_array_class).should be_true
29+
int_array.getClass.equal?(int_array_class[:class]).should be_true
3030
end
3131

3232
end

0 commit comments

Comments
 (0)