Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
fix for GPHIB-4, need to cast the null arg
Browse files Browse the repository at this point in the history
  • Loading branch information
burtbeckwith committed Aug 23, 2013
1 parent feb6ba3 commit d3421b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -182,7 +182,7 @@ class HibernateUtils {
// http://jira.codehaus.org/browse/GROOVY-6138 prevents using CompileStatic for this method
@CompileStatic(TypeCheckingMode.SKIP)
static void enhanceProxyClass(Class proxyClass) {
MetaMethod grailsEnhancedMetaMethod = proxyClass.metaClass.getStaticMetaMethod("grailsEnhanced", null)
MetaMethod grailsEnhancedMetaMethod = proxyClass.metaClass.getStaticMetaMethod("grailsEnhanced", (Class[])null)
if (grailsEnhancedMetaMethod != null && grailsEnhancedMetaMethod.invoke(proxyClass, null) == proxyClass) {
return
}
Expand Down
Expand Up @@ -181,7 +181,7 @@ class HibernateUtils {
// http://jira.codehaus.org/browse/GROOVY-6138 prevents using CompileStatic for this method
@CompileStatic(TypeCheckingMode.SKIP)
static void enhanceProxyClass(Class proxyClass) {
MetaMethod grailsEnhancedMetaMethod = proxyClass.metaClass.getStaticMetaMethod("grailsEnhanced", null)
MetaMethod grailsEnhancedMetaMethod = proxyClass.metaClass.getStaticMetaMethod("grailsEnhanced", (Class[])null)
if (grailsEnhancedMetaMethod != null && grailsEnhancedMetaMethod.invoke(proxyClass, null) == proxyClass) {
return
}
Expand Down

0 comments on commit d3421b6

Please sign in to comment.