Skip to content

Commit

Permalink
GRAILS-5809 - remove static propertyMissing from domain classes for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Brown committed Jan 28, 2010
1 parent a5b51b7 commit 0ef323e
Showing 1 changed file with 0 additions and 8 deletions.
Expand Up @@ -389,14 +389,6 @@ Using Grails' default cache provider: 'net.sf.ehcache.hibernate.EhCacheProvider'
}
result
}
mc.static.propertyMissing = { String propertyName ->
initDomainClassOnce()
def mp = mc.getMetaProperty(propertyName)
if(mp && java.lang.reflect.Modifier.isStatic(mp.modifiers)) {
return mc.getProperty(delegate, propertyName)
}
throw new MissingPropertyException(propertyName, delegate)
}
addValidationMethods(dc, application, ctx, sessionFactory)
}

Expand Down

0 comments on commit 0ef323e

Please sign in to comment.