Skip to content

java_import conflicts should get scoped properly #6115

@kares

Description

@kares

UPDATED example :

java_import 'java.util.jar.Attributes'

class JavaImportScope
  def do_import # self.do_import works
    java_import 'org.xml.sax.Attributes'
  end

  def self.attributes
    Attributes
  end
end

JavaImportScope.new.do_import

puts JavaImportScope.attributes # org.xml.sax.Attributes
puts Attributes # also org.xml.sax.Attributes (with a warning)

will try to come up with a detailed spec for the feature

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions