Sounds like a Guice bug (or whatever is doing the bytecode weaving). Code compiled using Java 1.7 requires stack map frame instructions. If you wish to modify Java 1.7 class files, you need to use ClassWriter.COMPUTE_FRAMES or MethodVisit.visitFrame(). The only time I've seen this error is where the user did not generate the necessary frames.
Gili On Jul 29, 8:44 pm, Stuart McCulloch <[email protected]> wrote: > On 30 Jul 2011, at 01:38, Leigh Klotz, Jr. wrote: > > > The issue didn't go away. I tried a couple of times. As I said > > above, though, using -XX:-UseSplitVerifier does make the problem go > > away. > > > I fetched trunk and built with "ant dist" and copied used the > > resulting build/dist/*-snapshot.jar files. I verified that the > > resulting trunk lib/build has asm-3.3.1.jar in it. > > > So, I'm stumped at this point, as '388 above says that asm 3.3.1 fixed > > it. I'm willing to believe that I've overlooked something. > > > Given the performance problems I'm seeing with JDK 1.7 and the day-one > > bugs, it's probably going to be a while before this problem matters. > > True, but it's worth recording on the Guice issue tracker for when Java 7 > settles down :) > > Could you also attach a test class if available, or some instructions on how > to recreate it > > -- > Cheers, Stuart > > > > > > > > > Leigh. > > > On Jul 29, 4:29 pm, Stuart McCulloch <[email protected]> wrote: > >> On 29 July 2011 23:53, Leigh Klotz, Jr. <[email protected]> wrote: > >>> I tried JDK 1.7 today and get this error: > > >>> Error injecting constructor, java.lang.VerifyError: Expecting a > >>> stackmap frame at branch target 41 in method > >>> sun.security.ec.SunEC.<init>()V at offset 28 > > >>> The object being injected has a constructor accepting a few providers, > >>> another object, and a provider marked with a custom annotation. > > >>> When I search for the error message, I get this, from antlr: > > >>>https://bugs.eclipse.org/bugs/show_bug.cgi?id=339388 > > >>> I'm already running JDK 1.7 with -XX:-OptimizeStringConcat -XX:- > >>> AggressiveOpts > > >> Can you recreate the error using Guice trunk? It updates ASM to 3.3.1 > >> which > >> might fix the problem. > > >>> Leigh. > > >>> -- > >>> You received this message because you are subscribed to the Google Groups > >>> "google-guice" group. > >>> To post to this group, send email to [email protected]. > >>> To unsubscribe from this group, send email to > >>> [email protected]. > >>> For more options, visit this group at > >>>http://groups.google.com/group/google-guice?hl=en. > > >> -- > >> Cheers, Stuart > > > -- > > You received this message because you are subscribed to the Google Groups > > "google-guice" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group > > athttp://groups.google.com/group/google-guice?hl=en. -- You received this message because you are subscribed to the Google Groups "google-guice" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-guice?hl=en.
