Created
November 22, 2013 09:35
-
-
Save lhotari/7597343 to your computer and use it in GitHub Desktop.
GRAILS-10823 workaround. add this file to grails-app/conf directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.codehaus.groovy.grails.web.json.JSONObject | |
class JsonWorkaroundBootStrap { | |
def init = { servletContext -> | |
// activate workaround for GRAILS-10823 | |
println("activating workaround for GRAILS-10823 - use this only for Grails 2.3.3") | |
org.springframework.util.ReflectionUtils.findField(JSONObject, "useStreamingJavascriptEncoder").with { | |
accessible = true | |
set(null, false) | |
} | |
} | |
def destroy = { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
another workaround (backport of the fix): lhotari/FrameworkBenchmarks@61e4a03