// This example failes.
int i=0;
for(int j = 0; j < 10; j++) System.out.println(i++);
// This example works.
int i=0;
for(int j = 0; j < 10; j++) { i++; System.out.println(i);}
II'm not sure how the code works or I would try submitting a patch.
(p.s we have at least 3 people that can reproduce this, the ticket submitter, me, and fredix on irc)
Caused by: play.exceptions.UnexpectedException: While applying class
play.classloading.enhancers.LocalvariablesNamesEnhancer on
controllers.Application
at play.CorePlugin.enhance(CorePlugin.java:299)
at play.plugins.PluginCollection.enhance(PluginCollection.java:434)
... 5 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: 5
at javassist.bytecode.stackmap.Tracer.doLDC(Tracer.java:273)
at javassist.bytecode.stackmap.Tracer.doOpcode0_53(Tracer.java:185)
at javassist.bytecode.stackmap.Tracer.doOpcode(Tracer.java:94)
at javassist.bytecode.stackmap.MapMaker.make(MapMaker.java:161)
at javassist.bytecode.stackmap.MapMaker.make(MapMaker.java:171)
at javassist.bytecode.stackmap.MapMaker.make(MapMaker.java:120)
at javassist.bytecode.stackmap.MapMaker.make(MapMaker.java:96)
at javassist.bytecode.MethodInfo.rebuildStackMap(MethodInfo.java:404)
at javassist.bytecode.MethodInfo.rebuildStackMapIf6(MethodInfo.java:389)
at javassist.CtBehavior.insertBefore(CtBehavior.java:674)
at javassist.CtBehavior.insertBefore(CtBehavior.java:640)
I will look at it closer.
--
Stephane Godbillon
> --
> You received this message because you are subscribed to the Google Groups
> "play-framework" group.
> To post to this group, send email to play-fr...@googlegroups.com.
> To unsubscribe from this group, send email to
> play-framewor...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/play-framework?hl=en.
>
Should be fixed with this pull request :
https://github.com/playframework/play/pull/384 .
Cheers :)
--
Stephane Godbillon
> --
> You received this message because you are subscribed to the Google Groups
> "play-framework" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/play-framework/-/O00a-gf77WUJ.
--
Stephane Godbillon
> --
> You received this message because you are subscribed to the Google Groups
> "play-framework" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/play-framework/-/RU9qnwzFgx8J.