Larry Garfield
06/14/2024, 3:59 PMinterface Foo
and class FooImpl: Foo
. They appear to be fine, have some dependencies, have no linter or compiler errors.
But I have a pre-existing controller test of a completely different part of the system, that has no dependency on Foo at all, that is now failing every test method with this error:
Error creating bean with name 'fooImpl': Lookup method resolution failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [com.myorg.FooImpl] from ClassLoader [jdk.internal.loader.ClassLoaders$AppClassLoader@5ffd2b27]
… Which I do not understand at all. I am even able to inject that class in a different test of the new code, but in this one test that shouldn’t be related, it’s failing. The fact that it fails on a lowercase f
in fooImpl
sounds suspicious, but I have no idea where that could be coming up. fooImpl
appears nowhere in the codebase at all, and FooImpl
appears only once, in the class definition.
What PEBCAK error am I looking at here?Emil Kantis
06/14/2024, 7:06 PMFooImpl
with @Component
or @Service
?Larry Garfield
06/14/2024, 7:17 PMkqr
06/17/2024, 7:53 AMLarry Garfield
06/17/2024, 11:37 AMkqr
06/17/2024, 11:39 AMThe fact that it fails on a lowercaseinf
sounds suspicious, but I have no idea where that could be coming upfooImpl
Larry Garfield
06/17/2024, 11:41 AMfooImpl
. But in so doing it does a lexical scan of the class, found the other class, tried to look that up, couldn’t, and so failed.