Skip to content

Commit ba0abaf

Browse files
committed
avoid NativeException - not used on recent JRuby
1 parent a9dac39 commit ba0abaf

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

src/main/ruby/jruby/rack/capture.rb

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,5 @@ def capture
128128
end
129129
end
130130

131-
module Native
132-
def capture
133-
super
134-
output.puts "\n--- Java Exception"
135-
cause.printStackTrace java.io.PrintStream.new(output.to_outputstream)
136-
end
137-
end
138131
end
139132
end

src/main/ruby/jruby/rack/core_ext.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,3 @@ class Exception
2222
class LoadError
2323
include JRuby::Rack::Capture::LoadPath
2424
end
25-
26-
class NativeException
27-
include JRuby::Rack::Capture::Native
28-
end

0 commit comments

Comments
 (0)