Untitled conversation
- User
[BUG] @Tool methods not inherited from superclas
@Toolmethods not inherited from superclass. I think this is a bug as this is something that should work.I didn't 100% verify this, but my inherited tools weren't being called and the LLM was stating that it didn't know what tool to call. Once I put the tool methods back in the concrete class, things worked, so I'm assuming that this bug report is true.
This should be done in LC4J too if it already doesn't work there.
Interface
No new interfaces are introduced.
- Assistant
I’ll trace how tool methods are discovered, add superclass traversal with the expected override behavior, and lock it down with focused tests.
- Assistant
The same declared-method-only assumption exists in both AI Services tool registration and the core
ToolSpecificationsutility, so I’m treating them as one consistency fix rather than patching only the reported path. - Assistant
The implementation now walks the class hierarchy and keeps the most-specific declaration for overridden signatures. I’ve also covered all three entry points: specification generation, AI Services discovery/execution, and request-based executor lookup.
- Assistant
The first test run reached a Maven component that was missing from the local cache and attempted dependency resolution, so I stopped it and am rerunning strictly offline. Compilation had already succeeded.
- Assistant
Offline compilation of the implementation and all affected test sources passes across the reactor. The local cache lacks Surefire’s JUnit provider, so Maven cannot launch the tests offline; I’m doing the final diff and behavior audit now, including inheritance visibility and override handling.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.