2008/10/8 James Strachan <[EMAIL PROTECTED]> > > A fresh trunk checkout (or trunk with my recent patches applied) fails > on my OS X box with Java 5 and Java 6 in the same way... > > [junit] Tests run: 542, Failures: 3, Errors: 2 > > Does this occur for others as well or is it a quirk of OS X I wonder? >
FWIW this is the same on Windows and Linux Several (if not all) of the failing tests are for issues that should be fixed before the next release (such as the proxy classloading issue) but have not yet been resolved, which is why they are currently failing... So imho this is nothing to worry about - they're just reminders to Jesse ;) Full build log follows if it helps... > > test: > [junit] .........F.....F........................... > [junit] ......................................... > [junit] ......................................... > [junit] ......................................... > [junit] ......................................... > [junit] ......................................... > [junit] ......................................... > [junit] ......................................... > [junit] ......................................... > [junit] ......................................... > [junit] .......E.................................. > [junit] ......................................... > [junit] ..................................E.F...... > [junit] ......... > [junit] Time: 4.767 > [junit] There were 2 errors: > [junit] 1) > testUnscopedProviderWorksOutsideOfRequestedScope(com.google.inject.ScopesTest)java.lang.NullPointerException > [junit] at > > com.google.inject.InjectorImpl$LateBoundConstructor.get(InjectorImpl.java:482) > [junit] at com.google.inject.FactoryProxy.get(FactoryProxy.java:53) > [junit] at > > com.google.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:43) > [junit] at > com.google.inject.InjectorImpl.callInContext(InjectorImpl.java:990) > [junit] at > > com.google.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40) > [junit] at > > com.google.inject.ScopesTest.testUnscopedProviderWorksOutsideOfRequestedScope(ScopesTest.java:246) > [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) > [junit] at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > [junit] at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > [junit] 2) > testProxyClassLoading(com.googlecode.guice.BytecodeGenTest)java.lang.NoClassDefFoundError: > [Lnet/sf/cglib/proxy/Callback; > [junit] at java.lang.Class.getDeclaredMethods0(Native Method) > [junit] at > java.lang.Class.privateGetDeclaredMethods(Class.java:2427) > [junit] at java.lang.Class.getDeclaredMethod(Class.java:1935) > [junit] at > net.sf.cglib.proxy.Enhancer.getCallbacksSetter(Enhancer.java:630) > [junit] at > net.sf.cglib.proxy.Enhancer.setCallbacksHelper(Enhancer.java:618) > [junit] at > net.sf.cglib.proxy.Enhancer.registerStaticCallbacks(Enhancer.java:594) > [junit] at > > com.google.inject.ProxyFactory.createConstructionProxy(ProxyFactory.java:151) > [junit] at > com.google.inject.ProxyFactory$1.create(ProxyFactory.java:68) > [junit] at > com.google.inject.ProxyFactory$1.create(ProxyFactory.java:66) > [junit] at > com.google.inject.internal.FailableCache$1.create(FailableCache.java:32) > [junit] at > com.google.inject.internal.ReferenceCache.create(ReferenceCache.java:54) > [junit] at > > com.google.inject.internal.AbstractReferenceCache.internalCreate(AbstractReferenceCache.java:59) > [junit] at > > com.google.inject.internal.AbstractReferenceCache.get(AbstractReferenceCache.java:116) > [junit] at > com.google.inject.internal.ReferenceCache.get(ReferenceCache.java:28) > [junit] at > com.google.inject.internal.FailableCache.get(FailableCache.java:43) > [junit] at com.google.inject.ProxyFactory.get(ProxyFactory.java:61) > [junit] at > > com.google.inject.RuntimeReflectionFactory$RuntimeReflection.getConstructionProxy(RuntimeReflectionFactory.java:53) > [junit] at > com.google.inject.ConstructorInjector.<init>(ConstructorInjector.java:43) > [junit] at > com.google.inject.InjectorImpl$4.create(InjectorImpl.java:840) > [junit] at > com.google.inject.InjectorImpl$4.create(InjectorImpl.java:837) > [junit] at > com.google.inject.internal.FailableCache$1.create(FailableCache.java:32) > [junit] at > com.google.inject.internal.ReferenceCache.create(ReferenceCache.java:54) > [junit] at > > com.google.inject.internal.AbstractReferenceCache.internalCreate(AbstractReferenceCache.java:59) > [junit] at > > com.google.inject.internal.AbstractReferenceCache.get(AbstractReferenceCache.java:116) > [junit] at > com.google.inject.internal.ReferenceCache.get(ReferenceCache.java:28) > [junit] at > com.google.inject.internal.FailableCache.get(FailableCache.java:43) > [junit] at > > com.google.inject.InjectorImpl$LateBoundConstructor.bind(InjectorImpl.java:466) > [junit] at > com.google.inject.ClassBindingImpl.initialize(ClassBindingImpl.java:46) > [junit] at > com.google.inject.InjectorImpl.initializeBinding(InjectorImpl.java:381) > [junit] at > com.google.inject.InjectorImpl.createBindingFromType(InjectorImpl.java:367) > [junit] at > > com.google.inject.InjectorImpl.createJustInTimeBinding(InjectorImpl.java:615) > [junit] at > com.google.inject.InjectorImpl.getJustInTimeBinding(InjectorImpl.java:201) > [junit] at > com.google.inject.InjectorImpl.getBindingOrThrow(InjectorImpl.java:137) > [junit] at > com.google.inject.InjectorImpl.getInternalFactory(InjectorImpl.java:620) > [junit] at > com.google.inject.FactoryProxy.notify(FactoryProxy.java:45) > [junit] at > > com.google.inject.BindingProcessor.runCreationListeners(BindingProcessor.java:243) > [junit] at > com.google.inject.InjectorBuilder.validate(InjectorBuilder.java:156) > [junit] at > com.google.inject.InjectorBuilder.build(InjectorBuilder.java:100) > [junit] at com.google.inject.Guice.createInjector(Guice.java:131) > [junit] at com.google.inject.Guice.createInjector(Guice.java:92) > [junit] at com.google.inject.Guice.createInjector(Guice.java:69) > [junit] at com.google.inject.Guice.createInjector(Guice.java:59) > [junit] at > > com.googlecode.guice.BytecodeGenTest.testProxyClassLoading(BytecodeGenTest.java:171) > [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) > [junit] at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > [junit] at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > [junit] Caused by: java.lang.ClassNotFoundException > [junit] at > > com.googlecode.guice.BytecodeGenTest$TestVisibilityClassLoader.loadClass(BytecodeGenTest.java:124) > [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:251) > [junit] at > java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374) > [junit] ... 60 more > [junit] There were 3 failures: > [junit] 1) > testBindDisallowedTypes(com.google.inject.BinderTest)junit.framework.AssertionFailedError: > Guice should not allow bindings to java.util.List<T> > [junit] at > com.google.inject.BinderTest.testBindDisallowedTypes(BinderTest.java:255) > [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) > [junit] at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > [junit] at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > [junit] 2) > testCannotBindToGuiceTypes(com.google.inject.BinderTest)junit.framework.AssertionFailedError: > Expected "Guice configuration errors: > [junit] > [junit] 1) Binding to core guice framework type is not allowed: > AbstractModule. > [junit] at > com.google.inject.BinderTest$18.configure(BinderTest.java:334) > [junit] > [junit] 2) Binding to core guice framework type is not allowed: Binder. > [junit] at > com.google.inject.BinderTest$18.configure(BinderTest.java:336) > [junit] > [junit] 3) Binding to core guice framework type is not allowed: Binding. > [junit] at > com.google.inject.BinderTest$18.configure(BinderTest.java:337) > [junit] > [junit] 4) Binding to core guice framework type is not allowed: Key. > [junit] at > com.google.inject.BinderTest$18.configure(BinderTest.java:339) > [junit] > [junit] 5) Binding to core guice framework type is not allowed: Module. > [junit] at > com.google.inject.BinderTest$18.configure(BinderTest.java:340) > [junit] > [junit] 6) Binding to Provider is not allowed. > [junit] at > com.google.inject.BinderTest$18.configure(BinderTest.java:341) > [junit] > [junit] 7) Binding to core guice framework type is not allowed: Scope. > [junit] at > com.google.inject.BinderTest$18.configure(BinderTest.java:342) > [junit] > [junit] 8) Binding to core guice framework type is not allowed: > TypeLiteral. > [junit] at > com.google.inject.BinderTest$18.configure(BinderTest.java:343) > [junit] > [junit] 9) Binding to core guice framework type is not allowed: Key. > [junit] at > com.google.inject.BinderTest$18.configure(BinderTest.java:344) > [junit] > [junit] 9 error[s]" to contain substring "Binding to core guice > framework type is not allowed: Injector." > [junit] at com.google.inject.Asserts.assertContains(Asserts.java:57) > [junit] at > > com.google.inject.BinderTest.testCannotBindToGuiceTypes(BinderTest.java:349) > [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) > [junit] at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > [junit] at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > [junit] 3) > testProxyClassUnloading(com.googlecode.guice.BytecodeGenTest)junit.framework.AssertionFailedError > [junit] at > > com.googlecode.guice.BytecodeGenTest.testProxyClassUnloading(BytecodeGenTest.java:204) > [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) > [junit] at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > [junit] at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > [junit] > [junit] FAILURES!!! > [junit] Tests run: 542, Failures: 3, Errors: 2 > [junit] > > BUILD FAILED > /workspace/java/google-guice-read-only/common.xml:78: Java returned: 1 > > > -- > James > ------- > http://macstrac.blogspot.com/ > > Open Source Integration > http://open.iona.com > > > > -- 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 at http://groups.google.com/group/google-guice?hl=en -~----------~----~----~----~------~----~------~--~---
