Sha256: b329981a646ba8f277ad820416e229a45e5b2612651a430750786b0e9a61ba1c

Contents?: true

Size: 344 Bytes

Versions: 16

Compression:

Stored size: 344 Bytes

Contents

require 'rjb'
Rjb::load
begin
  Rjb::import('java.lang.Integer').parseInt('x')
rescue => e
  begin
    raise e
  rescue => f
    if e.class == f.class
      puts "I expect the equality to be true"
    else
      puts "Unexpectedly the re-raised Java exception has changed " +
           "from a #{e.class} into a #{f.class}"
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
rjb-1.7.3 test/anon-test-60.rb
rjb-1.7.1 test/anon-test-60.rb
rjb-1.7.0 test/anon-test-60.rb
rjb-1.6.9 test/anon-test-60.rb
rjb-1.6.8 test/anon-test-60.rb
rjb-1.6.7 test/anon-test-60.rb
rjb-1.6.6 test/anon-test-60.rb
rjb-1.6.5 test/anon-test-60.rb
rjb-1.6.4 test/anon-test-60.rb
rjb-1.6.3 test/anon-test-60.rb
rjb-1.6.2 test/anon-test-60.rb
rjb-1.6.1 test/anon-test-60.rb
rjb-1.6.0 test/anon-test-60.rb
rjb-1.5.9 test/anon-test-60.rb
rjb-1.5.8 test/anon-test-60.rb
rjb-1.5.7 test/anon-test-60.rb