File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
src/main/ruby/truffleruby/core/truffle Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 53
53
end
54
54
end
55
55
56
- describe "Java j.l .Class instance" do
56
+ describe "Java java.lang .Class instance" do
57
57
it "gives a similar representation to Ruby" do
58
58
foreign = Truffle ::Interop . java_type ( "java.math.BigInteger" ) [ :class ]
59
- foreign . inspect . should =~ /\A #<Polyglot::ForeignInstantiable\[ Java\] java.lang.Class:0x\h + java.math.BigInteger>\z /
59
+ foreign . inspect . should =~ /\A #<Polyglot::ForeignInstantiable\[ Java\] java.lang.Class:0x\h + java.math.BigInteger static={...} >\z /
60
60
foreign . to_s . should == "#<Polyglot::ForeignInstantiable[Java] java.math.BigInteger>"
61
61
end
62
62
end
Original file line number Diff line number Diff line change @@ -77,7 +77,6 @@ def self.foreign_inspect_nonrecursive(object)
77
77
78
78
show_members = true
79
79
if Truffle ::Interop . java_class? ( object ) # a java.lang.Class instance, treat it like a regular object
80
- show_members = false
81
80
string << " #{ Truffle ::Interop . to_display_string ( object ) } "
82
81
end
83
82
if Truffle ::Interop . has_array_elements? ( object )
You can’t perform that action at this time.
0 commit comments