Comment #15 on issue 757 by mingfai...@gmail.com: Java 8 lambda definitions can break Guice's internal exception handling
http://code.google.com/p/google-guice/issues/detail?id=757

tried a number of combination and finally get Guice to show error message for Java 8 Lambda properly :

1. Build a custom Guice snapshot with Java 8
1.1 update core/pom.xml
      update to the latest cglib and asm
 <properties>
    <cglib.version>3.1</cglib.version>
    <asm.version>5.0_BETA</asm.version>
  </properties>
comment maven-javadoc-plugin and animal-sniffer-maven-plugin for building with Java 8

1.2 update extensions/pom.xml
comment maven-javadoc-plugin and animal-sniffer-maven-plugin for building with Java 8

1.2 build Guice
mvn clean compile package source:jar install -pl .,core,extensions,extensions/assistedinject,extensions/multibindings -DskipTests
notice that
- the above command build two of the extensions
- assistedinject actually got test failure so something may be broken.

2. Configure the pom.xml in your project to include javax.inject, incl. Guice with no_aop classifier
 <dependency>
            <groupId>javax.inject</groupId>
            <artifactId>javax.inject</artifactId>
            <version>1</version>
        </dependency>
        <dependency>
            <groupId>com.google.inject</groupId>
            <artifactId>guice</artifactId>
            <version>${guice.version}</version>
            <classifier>no_aop</classifier>
        </dependency>

Some of the steps/configuration may not be needed. At least, it is one of the ways that make it work.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"google-guice-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-guice-dev+unsubscr...@googlegroups.com.
To post to this group, send email to google-guice-dev@googlegroups.com.
Visit this group at http://groups.google.com/group/google-guice-dev.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to