Playframework Groovy plugin 0.1.99 release

Just uploaded compiled and packed up release of Playframework module that allows you to develop Play! applications in Groovy.
It’s based on Dave Clark code (https://github.com/clarkdave/play-groovy) with some nice features added here and there.

Check it out if you work with Play! in Java team and want to try some scripting language:
http://github.com/marekpiechut/play-groovy

About these ads

One Response to Playframework Groovy plugin 0.1.99 release

  1. Are you planning to keep updatin this module, because i think i found a bug… if you have time try this in a play controller:

    static void update(@Valid Ticket ticket, @As(“;”) List adjuntos){
    if(adjuntos){
    adjuntos.each{ adjunto ->
    if(adjunto){
    //There was other code here but this works as an example… it produces the same error
    println(“${adjunto}/opt/calidadonline/documentos/tickets/${ticket.id}/”)
    }
    }
    }
    }

    Ticket is a model class.

    That code compiles in a normal groovy project but in a play project using groovy module generates this exception:

    Exception in thread “main” java.lang.VerifyError: (class: controllers/ControllerTicket, method: update2 signature: (Lmodels/Ticket;Ljava/util/List;)V) Accessing value from uninitialized register 2

    And as far as i have noticed it’s because it can access ticket inside the each closure. But as i said before in a normal groovy proyect it works just fine.

    If you don’t have the time maybe you can point me in the right direction so i can fix it myself.

    Thanks.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 29 other followers

%d bloggers like this: