Skip to content

require 'ripper' yields const already init warnings #2904

Closed
@cpuguy83

Description

@cpuguy83

When trying to require ripper on jruby 9k-pre2 we get these warnings:

/opt/jruby/lib/ruby/stdlib/ripper/core.rb:13: warning: already initialized constant SCANNER_EVENT_TABLE
/opt/jruby/lib/ruby/stdlib/ripper/core.rb:13: warning: already initialized constant PARSER_EVENT_TABLE
/opt/jruby/lib/ruby/stdlib/ripper/core.rb:13: warning: already initialized constant Version
/opt/jruby/lib/ruby/stdlib/ripper/core.rb:13: warning: already initialized constant SCRIPT_LINES__

Looking at the referenced core.rb, the only thing I can see is that before doing anything it's requiring ripper.jar... so I'm assuming that these constants are being defined in there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions