Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Truffle] Missing method needed for CGI #2801

Closed
bjfish opened this issue Apr 3, 2015 · 2 comments
Closed

[Truffle] Missing method needed for CGI #2801

bjfish opened this issue Apr 3, 2015 · 2 comments
Milestone

Comments

@bjfish
Copy link
Contributor

bjfish commented Apr 3, 2015

define_method is used to implement CGI:
Example

module Example
     def nOE_element_def(attributes = {}, &block)
      puts "Hello"
    end

    instance_method(:nOE_element_def).tap do |m|
      # - O EMPTY
      for element in %w[ IMG BASE BASEFONT BR AREA LINK PARAM HR INPUT
          ISINDEX META ]
        define_method(element.downcase, m)
      end
    end
end

Error

rang.rb:2087:in `define_method': Truffle doesn't have a case for the org.jruby.truffle.nodes.core.ModuleNodesFactory$DefineMethodNodeFactory$DefineMethodPolymorphicNode node with values of type  Module(org.jruby.truffle.runtime.core.RubyModule) java.lang.String UnboundMethod(org.jruby.truffle.runtime.core.RubyUnboundMethod) org.jruby.truffle.runtime.UndefinedPlaceholder (TypeError)
``
@bjfish
Copy link
Contributor Author

bjfish commented Apr 4, 2015

Tap added at 0e4e50c

@bjfish bjfish changed the title [Truffle] Missing methods needed for CGI [Truffle] Missing method needed for CGI Apr 4, 2015
@chrisseaton chrisseaton added this to the truffle-dev milestone Apr 4, 2015
@chrisseaton
Copy link
Contributor

define_method fixed for UnboundMethod in c6599ea.

@enebo enebo added this to the Non-Release milestone Dec 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants