Skip to content

Rescue StandardError rescues Java errors #1696

@grddev

Description

@grddev

The following example program prints [:error, java.lang.OutOfMemoryError: Java heap space], and exits with zero exit code, although I would have expected it not to

begin
  str = 'xxx'
  loop do
    str *= 2;
  end
rescue => e
  p [:error, e]
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions