I am trying to debug a Java program that contains a fair number of anonymous inner classes. Whenever I start the program in Eclipse's debug mode, I get the following messages:
Unable to install breakpoint in my.own.code.SomeClass1$$FastClassByGuice$$21bac442
Unable to install breakpoint in my.own.code.SomeClass2$$FastClassByGuice$$7880adb3
Unable to install breakpoint in my.own.code.SomeClass2$$FastClassByGuice$$7880adb3
Unable to install breakpoint in my.own.code.SomeClass3$$FastClassByGuice$$9ac6f2a1
Unable to install breakpoint in my.own.code.SomeClass4$$FastClassByGuice$$8ae07d4b
Unable to install breakpoint in my.own.code.SomeClass4$$FastClassByGuice$$9ac6f2a1
Unable to install breakpoint in my.own.code.SomeClass5$$FastClassByGuice$$2ef92190
Unable to install breakpoint in my.own.code.SomeClass6$$FastClassByGuice$$c98d2633
For each breakpoint in one of my anonymous inner classes I get a message like those above. How do I fix that? I need to debug my anonymous inner classes.
Some extra info: My program consists of 4 maven modules inside one large maven project.
I compile them all in the same way using Oracle's jdk1.7.
Just to be sure, I added the following to all my modules' pom.xmls, but without any luck:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<debug>true</debug>
</configuration>
</plugin>
</plugins>
</build>
I have also looked at (1, 2, 3), but my eclipse settings are okay.
Guice uses bytecode generation for AOP (Aspect Oriented Programming), faster reflection, and to proxy circular dependencies.
Since version 2.0 of Guice, AOP is optional. For example you can use 2.0-no_aop:
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<version>2.0-no_aop</version>
</dependency>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With