Comments (9)
I can't reproduce this locally.
I think this is being caused by this JDK bug:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7003595
What happens if you update your java to a recent version?
from dagger.
Thanks for replying so quickly :)
I've updated to the latest java version but mvn test still fails for me:
C:\Users\yzibin\workspace\dagger-master>java -version
java version "1.7.0_09"
Java(TM) SE Runtime Environment (build 1.7.0_09-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode)
C:\Users\yzibin\workspace\dagger-master>mvn -e test
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Dagger (Parent)
[INFO] Dagger
[INFO] Dagger Compiler
[INFO] Dagger AndroidManifest.xml Module Generator
[INFO] Dagger Example
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Dagger (Parent) 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ dagger-parent ---
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Dagger 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ dagger ---
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ dagger ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\yzibin\workspace\dagger-mast
er\core\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5:compile (default-compile) @ dagger ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ da
gger ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\yzibin\workspace\dagger-mast
er\core\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5:testCompile (default-testCompile) @ dagger
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ dagger ---
[INFO] Surefire report directory: C:\Users\yzibin\workspace\dagger-master\core\t
arget\surefire-reports
T E S T S
Running dagger.ExtensionTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.095 sec
Running dagger.InjectionOfLazyTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.012 sec
Running dagger.InjectionTest
Tests run: 31, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.125 sec <<< F
AILURE!
Running dagger.InjectStaticsTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
Running dagger.internal.KeysTest
Tests run: 18, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.014 sec
Running dagger.LazyInjectionTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.018 sec
Running dagger.MembersInjectorTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.024 sec
Running dagger.ModuleIncludesTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.019 sec
Running dagger.ProblemDetectorTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec
Running dagger.SetBindingTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.022 sec
Results :
Tests in error:
noConstructorInjectionsForClassesWithTypeParameters(dagger.InjectionTest): dag
ger.InjectionTest and dagger.InjectionTest$1Parameterized disagree on InnerClass
es attribute
Tests run: 89, Failures: 0, Errors: 1, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Dagger (Parent) ................................... SUCCESS [0.683s]
[INFO] Dagger ............................................ FAILURE [1.756s]
[INFO] Dagger Compiler ................................... SKIPPED
[INFO] Dagger AndroidManifest.xml Module Generator ....... SKIPPED
[INFO] Dagger Example .................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.649s
[INFO] Finished at: Sun Nov 11 13:02:54 EST 2012
[INFO] Final Memory: 6M/105M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.
10:test (default-test) on project dagger: There are test failures.
[ERROR]
[ERROR] Please refer to C:\Users\yzibin\workspace\dagger-master\core\target\sure
fire-reports for the individual test results.
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal o
rg.apache.maven.plugins:maven-surefire-plugin:2.10:test (default-test) on projec
t dagger: There are test failures.
Please refer to C:\Users\yzibin\workspace\dagger-master\core\target\surefire-rep
orts for the individual test results.
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:213)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBu
ild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
Caused by: org.apache.maven.plugin.MojoFailureException: There are test failures
.
Please refer to C:\Users\yzibin\workspace\dagger-master\core\target\surefire-rep
orts for the individual test results.
at org.apache.maven.plugin.surefire.SurefireHelper.reportExecution(Suref
ireHelper.java:87)
at org.apache.maven.plugin.surefire.SurefirePlugin.writeSummary(Surefire
Plugin.java:641)
at org.apache.maven.plugin.surefire.SurefirePlugin.handleSummary(Surefir
ePlugin.java:615)
at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPre
conditionsChecked(AbstractSurefireMojo.java:137)
at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(Abstrac
tSurefireMojo.java:98)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:209)
... 19 more
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
eption
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :dagger
C:\Users\yzibin\workspace\dagger-master>
from dagger.
On 11 Nov 2012, at 13:03, Yoav Zibin wrote:
Thanks for replying so quickly :)
I've updated to the latest java version but mvn test still fails for
me:Please refer to
C:\Users\yzibin\workspace\dagger-master\core\target\surefire-rep
orts for the individual test results.
Can you please check the contents of the surefire reports and post them?
It's showing a test failure, but you need to see inside the failing
test report to see why.
from dagger.
I tried:
mvn test
on my ubuntu machine (I thought maybe it is has something to do with running on windows),
and here I get a different failure.
I'll try the project again when it reaches beta :)
Thanks!
T E S T S
Running dagger.ProblemDetectorTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.119 sec
Running dagger.InjectStaticsTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.033 sec
Running dagger.InjectionOfLazyTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.025 sec
Running dagger.MembersInjectorTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.052 sec
Running dagger.ExtensionTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.02 sec
Running dagger.LazyInjectionTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.021 sec
Running dagger.internal.KeysTest
Tests run: 18, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.018 sec
Running dagger.SetBindingTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.064 sec
Running dagger.InjectionTest
Tests run: 31, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.222 sec <<< FAILURE!
Running dagger.ModuleIncludesTest
Tests run: 8, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.058 sec <<< FAILURE!
Results :
Tests in error:
noConstructorInjectionsForClassesWithTypeParameters(dagger.InjectionTest): dagger.InjectionTest and dagger.InjectionTest$1Parameterized disagree on InnerClasses attribute
childModuleWithBinding(dagger.ModuleIncludesTest): No entry point for members/dagger.ModuleIncludesTest$1TestEntryPoint. You must explicitly add an entry point to one of your modules.
childModuleWithChildModule(dagger.ModuleIncludesTest): No entry point for members/dagger.ModuleIncludesTest$2TestEntryPoint. You must explicitly add an entry point to one of your modules.
childModuleWithManualConstruction(dagger.ModuleIncludesTest): No entry point for members/dagger.ModuleIncludesTest$3TestEntryPoint. You must explicitly add an entry point to one of your modules.
Tests run: 90, Failures: 0, Errors: 4, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Dagger (Parent) ................................... SUCCESS [0.440s]
[INFO] Dagger ............................................ FAILURE [4.108s]
[INFO] Dagger Compiler ................................... SKIPPED
[INFO] Dagger AndroidManifest.xml Module Generator ....... SKIPPED
[INFO] Dagger Example .................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.737s
[INFO] Finished at: Mon Nov 12 16:35:21 EST 2012
[INFO] Final Memory: 10M/179M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default-test) on project dagger: There are test failures.
[ERROR]
[ERROR] Please refer to /home/yzibin/Documents/dagger-static-dependency-injection-like-GUICE/core/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :dagger
yzibin@yzibin:/home/yzibin/Documents/dagger-static-dependency-injection-like-GUICE$
from dagger.
Sigh, it works for me. Thanks for your patience. If you wanna give it one last try, do this:
git pull
mvn clean test
java -version
It works for me on Mac OS X with Java 1.7.0_10-ea and Java 1.6.0_37. But there could be an annotation processor bug in your version of Java that I'm not seeing.
from dagger.
I also had the same error using JDK 6:
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
Switching to JDK 7 helped:
Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode)
from dagger.
I was so excited about trying out Dagger after listening to Eric's talk; great work guys and much thanks for sharing...
I'm on a WindowsXP using jdk1.7.0, and had just cloned repository this morning from git://github.com/square/dagger.git
I'm getting the same error after running from the dagger directory: mvn clean test OR mvn clean install
Tests in error:
noConstructorInjectionsForClassesWithTypeParameters(dagger.InjectionTest): dagger.InjectionTest and dagger.InjectionTest$1Parameterized disagree on InnerClasses attribute
Here're the contents of C:\downloadpath\dagger\core\target\surefire-reports\TEST-dagger.InjectionTest.xml
<?xml version="1.0" encoding="UTF-8" ?>
<testsuite failures="0" time="0.14" errors="1" skipped="0" tests="31" name="dagger.InjectionTest">
<properties>
<property name="java.runtime.name" value="Java(TM) SE Runtime Environment"/>
<property name="sun.boot.library.path" value="C:\Program Files\Java\jdk1.7.0\jre\bin"/>
<property name="java.vm.version" value="21.0-b17"/>
<property name="java.vm.vendor" value="Oracle Corporation"/>
<property name="java.vendor.url" value="http://java.oracle.com/"/>
<property name="path.separator" value=";"/>
<property name="guice.disable.misplaced.annotation.check" value="true"/>
<property name="java.vm.name" value="Java HotSpot(TM) Client VM"/>
<property name="file.encoding.pkg" value="sun.io"/>
<property name="user.script" value=""/>
<property name="user.country" value="US"/>
<property name="sun.java.launcher" value="SUN_STANDARD"/>
<property name="sun.os.patch.level" value="Service Pack 3"/>
<property name="java.vm.specification.name" value="Java Virtual Machine Specification"/>
<property name="user.dir" value="C:\Documents and Settings\<username>\My Documents\Downloads\dagger"/>
<property name="java.runtime.version" value="1.7.0-b147"/>
<property name="java.awt.graphicsenv" value="sun.awt.Win32GraphicsEnvironment"/>
<property name="java.endorsed.dirs" value="C:\Program Files\Java\jdk1.7.0\jre\lib\endorsed"/>
<property name="os.arch" value="x86"/>
<property name="java.io.tmpdir" value="C:\DOCUME~1\<USERNAME>~1\LOCALS~1\Temp\"/>
<property name="line.separator" value="
"/>
<property name="java.vm.specification.vendor" value="Oracle Corporation"/>
<property name="user.variant" value=""/>
<property name="os.name" value="Windows XP"/>
<property name="classworlds.conf" value="C:\Program Files\Apache Software Foundation\apache-maven-3.0.4\bin\m2.conf"/>
<property name="sun.jnu.encoding" value="Cp1252"/>
<property name="java.library.path" value="C:\Program Files\Java\jdk1.7.0\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI.ACE\;C:\Program Files\Common Files\Intuit\QBPOSSDKRuntime;C:\Program Files\Android\android_sdk\platform-tools;C:\Program Files\Android\android_sdk\tools;C:\Program Files\Java\jdk1.7.0\bin;C:\Program Files\TortoiseHg\;C:\Program Files\TortoiseSVN\bin;C:\Program Files\SourceGear\Common\DiffMerge\;C:\Python27;C:\Program Files\Apache Software Foundation\apache-maven-3.0.4\bin;."/>
<property name="java.specification.name" value="Java Platform API Specification"/>
<property name="java.class.version" value="51.0"/>
<property name="sun.management.compiler" value="HotSpot Client Compiler"/>
<property name="os.version" value="5.1"/>
<property name="user.home" value="C:\Documents and Settings\<username>"/>
<property name="user.timezone" value="America/New_York"/>
<property name="java.awt.printerjob" value="sun.awt.windows.WPrinterJob"/>
<property name="java.specification.version" value="1.7"/>
<property name="file.encoding" value="Cp1252"/>
<property name="user.name" value="<UserName>"/>
<property name="java.class.path" value="C:\Program Files\Apache Software Foundation\apache-maven-3.0.4\boot\plexus-classworlds-2.4.jar"/>
<property name="java.vm.specification.version" value="1.7"/>
<property name="sun.arch.data.model" value="32"/>
<property name="java.home" value="C:\Program Files\Java\jdk1.7.0\jre"/>
<property name="sun.java.command" value="org.codehaus.plexus.classworlds.launcher.Launcher clean install"/>
<property name="java.specification.vendor" value="Oracle Corporation"/>
<property name="user.language" value="en"/>
<property name="awt.toolkit" value="sun.awt.windows.WToolkit"/>
<property name="java.vm.info" value="mixed mode, sharing"/>
<property name="java.version" value="1.7.0"/>
<property name="java.ext.dirs" value="C:\Program Files\Java\jdk1.7.0\jre\lib\ext;C:\WINDOWS\Sun\Java\lib\ext"/>
<property name="sun.boot.class.path" value="C:\Program Files\Java\jdk1.7.0\jre\lib\resources.jar;C:\Program Files\Java\jdk1.7.0\jre\lib\rt.jar;C:\Program Files\Java\jdk1.7.0\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.7.0\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.7.0\jre\lib\jce.jar;C:\Program Files\Java\jdk1.7.0\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.7.0\jre\classes"/>
<property name="java.vendor" value="Oracle Corporation"/>
<property name="maven.home" value="C:\Program Files\Apache Software Foundation\apache-maven-3.0.4"/>
<property name="file.separator" value="\"/>
<property name="java.vendor.url.bug" value="http://bugreport.sun.com/bugreport/"/>
<property name="sun.cpu.endian" value="little"/>
<property name="sun.io.unicode.encoding" value="UnicodeLittle"/>
<property name="sun.desktop" value="windows"/>
<property name="sun.cpu.isalist" value="pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86"/>
</properties>
<testcase time="0" classname="dagger.InjectionTest" name="basicInjection"/>
<testcase time="0" classname="dagger.InjectionTest" name="providerMethodsConflict"/>
<testcase time="0" classname="dagger.InjectionTest" name="singletonsInjectedOnlyIntoProviders"/>
<testcase time="0" classname="dagger.InjectionTest" name="noJitBindingsForInterfaces"/>
<testcase time="0" classname="dagger.InjectionTest" name="noProvideBindingsForAbstractClasses"/>
<testcase time="0" classname="dagger.InjectionTest" name="extendsParameterizedType"/>
<testcase time="0" classname="dagger.InjectionTest" name="injectParameterizedType"/>
<testcase time="0.015" classname="dagger.InjectionTest" name="injectWildcardType"/>
<testcase time="0" classname="dagger.InjectionTest" name="noConstructorInjectionsForClassesWithTypeParameters">
<error message="dagger.InjectionTest and dagger.InjectionTest$1Parameterized disagree on InnerClasses attribute" type="java.lang.IncompatibleClassChangeError">java.lang.IncompatibleClassChangeError: dagger.InjectionTest and dagger.InjectionTest$1Parameterized disagree on InnerClasses attribute
at java.lang.Class.getDeclaringClass(Native Method)
at sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl.<init>(ParameterizedTypeImpl.java:52)
at sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl.make(ParameterizedTypeImpl.java:95)
at sun.reflect.generics.factory.CoreReflectionFactory.makeParameterizedType(CoreReflectionFactory.java:105)
at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:140)
at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49)
at sun.reflect.generics.repository.FieldRepository.getGenericType(FieldRepository.java:85)
at java.lang.reflect.Field.getGenericType(Field.java:236)
at dagger.internal.plugins.reflect.ReflectiveAtInjectBinding.create(ReflectiveAtInjectBinding.java:161)
at dagger.internal.plugins.reflect.ReflectivePlugin.getAtInjectBinding(ReflectivePlugin.java:46)
at dagger.internal.RuntimeAggregatingPlugin.getAtInjectBinding(RuntimeAggregatingPlugin.java:113)
at dagger.internal.Linker.createJitBinding(Linker.java:180)
at dagger.internal.Linker.linkRequested(Linker.java:109)
at dagger.internal.Linker.linkAll(Linker.java:88)
at dagger.ObjectGraph.linkEverything(ObjectGraph.java:189)
at dagger.ObjectGraph.validate(ObjectGraph.java:178)
at dagger.InjectionTest.noConstructorInjectionsForClassesWithTypeParameters(InjectionTest.java:518)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)
</error>
</testcase>
<testcase time="0.016" classname="dagger.InjectionTest" name="moduleWithNoProvidesMethods"/>
<testcase time="0" classname="dagger.InjectionTest" name="getInstanceRequiresEntryPoint"/>
<testcase time="0" classname="dagger.InjectionTest" name="getInstanceOfPrimitive"/>
<testcase time="0" classname="dagger.InjectionTest" name="getInstanceOfArray"/>
<testcase time="0" classname="dagger.InjectionTest" name="getInstanceAndInjectMembersUseDifferentKeys"/>
<testcase time="0.016" classname="dagger.InjectionTest" name="entryPointNeedsNoInjectAnnotation"/>
<testcase time="0" classname="dagger.InjectionTest" name="cannotGetOnMembersOnlyInjectionPoint"/>
<testcase time="0" classname="dagger.InjectionTest" name="nonEntryPointNeedsInjectAnnotation"/>
<testcase time="0.015" classname="dagger.InjectionTest" name="twoAtInjectConstructorsIsRejected"/>
<testcase time="0" classname="dagger.InjectionTest" name="runtimeProvidesMethodsExceptionsAreNotWrapped"/>
<testcase time="0" classname="dagger.InjectionTest" name="runtimeConstructorExceptionsAreNotWrapped"/>
<testcase time="0" classname="dagger.InjectionTest" name="providerInjection"/>
<testcase time="0.016" classname="dagger.InjectionTest" name="singletons"/>
<testcase time="0" classname="dagger.InjectionTest" name="bindingAnnotations"/>
<testcase time="0.016" classname="dagger.InjectionTest" name="singletonBindingAnnotationAndProvider"/>
<testcase time="0.015" classname="dagger.InjectionTest" name="singletonInGraph"/>
<testcase time="0" classname="dagger.InjectionTest" name="noJitBindingsForAnnotations"/>
<testcase time="0" classname="dagger.InjectionTest" name="injectableSupertypes"/>
<testcase time="0.016" classname="dagger.InjectionTest" name="uninjectableSupertypes"/>
<testcase time="0" classname="dagger.InjectionTest" name="singletonsAreNotEager"/>
<testcase time="0" classname="dagger.InjectionTest" name="moduleOverrides"/>
<testcase time="0.015" classname="dagger.InjectionTest" name="getInstance"/>
</testsuite>
from dagger.
On Mon, Dec 17, 2012 at 1:10 AM, cl kim [email protected] wrote:
Tests in error:
noConstructorInjectionsForClassesWithTypeParameters(dagger.InjectionTest):
dagger.InjectionTest and dagger.InjectionTest$1Parameterized disagree on
InnerClasses attributeIt's a javac bug http://bugs.sun.com/view_bug.do?bug_id=7003595. Grab the
latest javac and the problem should go away!
from dagger.
Ok, got BUILD SUCCESS :)
But only with jdk1.6.0_38 and not jdk1.7.0 (for me anyway, on Windows XP).
Here's my setup, in case it's helpful to others:
- set System variables in Environment Variables: JAVA_HOME, value C:\Program Files\Java\jdk1.6.0_38
(in Control Panel > Java icon > Java tab > View... button, I see 1.7 Platform is enabled, probably when I installed jdk 1.7) - $ mvn -version
Apache Maven 3.0.4 (r1232337; 2012-01-17 03:44:56-0500)
Maven home: c:\Program Files\Apache Software Foundation\apache-maven-3.0.4
Java version: 1.6.0_38, vendor: Sun Microsystems Inc.
Java home: c:\Program Files\Java\jdk1.6.0_38\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows xp", version: "5.1", arch: "x86", family: "windows"
- $ java -version
java version "1.7.0_10"
Java(TM) SE Runtime Environment (build 1.7.0_10-b18)
Java HotSpot(TM) Client VM (build 23.6-b04, mixed mode, sharing)
- $ mvn clean package (in 'dagger' sub-directory where dagger is cloned from github)
- copy from ~/.m2/repository folder the javax jar file needed
javax.inject-1.jar
- paste into the .\example\target folder
- run
$ java -cp ./example/target/*:./core/target/* coffee.CoffeeApp
from dagger.
Related Issues (20)
- java.lang.NoClassDefFoundError: dagger.internal.Preconditions HOT 2
- java.lang.NoClassDefFoundError: dagger.internal.Preconditions HOT 1
- android.app.Application does not implement dagger.android.HasActivityInjector HOT 3
- --
- Android Context HOT 1
- Subcomponent inside subcomponent HOT 1
- Error when a component is trying to include bindings with different scopes could be more informative HOT 1
- Constructor injection cannot find symbol method inject members dagger2 2.14 HOT 1
- how can i run the example of CoffeeApp.java HOT 1
- Why do Singletons need an empty default constructor? HOT 2
- dagger-compiler
- dagger.android.DispatchingAndroidInjector cannot be provided without an @Provides HOT 1
- 每次修改完java代码都需要clean项目 才能运行, HOT 1
- did u consider this kind of case: ChildFragment needs to reuse ParentFragment's object instead of creating a new one。hilt may not support this kind of case
- duplicate Nullable HOT 2
- cannot generate
- Support extending base builder classes HOT 2
- The Hilt Android Gradle plugin is applied but no com.google.dagger:hilt-android dependency was found. HOT 1
- Issue with enableAggregatingTask flag / AGP 7.0 / oss-licenses HOT 1
- after add hilt { enableAggregatingTask = true } dependencies tasks faild
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dagger.