`execute_before_has_nan_hook_stack': compared with non class/module 
(TypeError) - triggered by datamapper
----------------------------------------------------------------------------------------------------------

                 Key: JRUBY-4481
                 URL: http://jira.codehaus.org/browse/JRUBY-4481
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.5
         Environment: Windows XP and Linux. JRE 6. datamapper 0.10.2.
            Reporter: Patrik Sundberg
            Assignee: Thomas E Enebo
             Fix For: JRuby 1.5


The following code triggers an exception not generated by 1.4.0 or MRI. If we 
don't require dm-constraints the problem does not occur. I'll look at what code 
in dm-constraints could be involved and get a simpler example if I'm able to.

>  1 require 'rubygems'
>  2 require 'dm-core'
>  3 require 'dm-constraints'
>  4 require 'dm-polymorphic'
>  5 require 'active_support'
>  6
>  7 class Effect
>  8   include DataMapper::Resource
>  9   property :id, Serial
>  10   is :polymorphic, :child, String
>  11 end
>  12
>  13 class A
>  14   include DataMapper::Resource
>  15   property :name, String, :key => true
>  16   has 1, :effect, :polymorphically => :child
>  17 end

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to