restfulapi/restful-api — pull request #10 by michaelcdillon (2014-05-24 15:04:37+00:00)
Title: ArrayList.sort getting passed java.util.Comparator instead of Closure

I recently just upgraded my grails app to 2.4.0 and I'm actively using and loving this plugin so when it failed to return any http requests that should be handled by the restful-api plugin I went digging. The issue is very simple, the latest version of grails includes a newer version of groovy and the arraylist.sort method expects a boolean argument along with a java.util.Comparator when sorting that way. I quickly searched the rest of the code base and saw no other usage of Comparators so I modified MediaTypeParser to use a closure with the same functionality as the comparator.