After updating a simple Rails 4.1.8 application in Rails 4.2.0, I see a lot of warnings about already initialized constants coming out of the PostgreSQL adapter:
/path/to/my/torquebox-3.1.1/jruby/lib/ruby/gems/shared/gems/activerecord-4.2.0/lib/active_record/connection_adapters/postgresql/array_parser.rb:6 warning: already initialized constant DOUBLE_QUOTE
/path/to/my/torquebox-3.1.1/jruby/lib/ruby/gems/shared/gems/activerecord-4.2.0/lib/active_record/connection_adapters/postgresql/array_parser.rb:7 warning: already initialized constant BACKSLASH
/path/to/my/torquebox-3.1.1/jruby/lib/ruby/gems/shared/gems/activerecord-4.2.0/lib/active_record/connection_adapters/postgresql/array_parser.rb:8 warning: already initialized constant COMMA
/path/to/my/torquebox-3.1.1/jruby/lib/ruby/gems/shared/gems/activerecord-4.2.0/lib/active_record/connection_adapters/postgresql/array_parser.rb:9 warning: already initialized constant BRACKET_OPEN
/path/to/my/torquebox-3.1.1/jruby/lib/ruby/gems/shared/gems/activerecord-4.2.0/lib/active_record/connection_adapters/postgresql/array_parser.rb:10 warning: already initialized constant BRACKET_CLOSE
Is this expected or indicates a problem with the new version of Rails (supposedly running under JRuby)? Is there any way to properly correct these warnings (except for their silence)?
user1454117
source
share