Skip to content

Commit ab75930

Browse files
authored
Remove usage of java_kind_of? (#54)
jruby-9.3.x removes support for `java_kind_of?` - this commit replaces it with `kind_of?`
1 parent f190428 commit ab75930

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 3.2.2
2+
- Fix: Remove usage of `java_kind_of?` to allow this plugin to be supported for versions of Logstash using jruby-9.3.x
3+
[#54](https://github.com/logstash-plugins/logstash-input-jms/pull/54)
4+
15
## 3.2.1
26
- Fix: improve compatibility with MessageConsumer implementations [#51](https://github.com/logstash-plugins/logstash-input-jms/pull/51),
37
such as IBM MQ.

lib/logstash/inputs/jms.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -299,9 +299,9 @@ def run(output_queue)
299299
def queue_event(msg, output_queue)
300300
begin
301301
if @include_body
302-
if msg.java_kind_of?(JMS::MapMessage)
302+
if msg.kind_of?(JMS::MapMessage)
303303
event = process_map_message(msg)
304-
elsif msg.java_kind_of?(JMS::TextMessage) || msg.java_kind_of?(JMS::BytesMessage)
304+
elsif msg.kind_of?(JMS::TextMessage) || msg.kind_of?(JMS::BytesMessage)
305305
event = decode_message(msg)
306306
else
307307
@logger.error( "Unsupported message type #{msg.data.class.to_s}" )

logstash-input-jms.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Gem::Specification.new do |s|
22

33
s.name = 'logstash-input-jms'
4-
s.version = '3.2.1'
4+
s.version = '3.2.2'
55
s.licenses = ['Apache License (2.0)']
66
s.summary = "Reads events from a Jms Broker"
77
s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"

0 commit comments

Comments
 (0)