holgerfriedrich opened a new pull request, #2870: URL: https://github.com/apache/karaf/pull/2870
Object.class.getConstructor(null) is a non-varargs call of a varargs method, which javac reports in every CI summary. The lookup could not return anything but the no-arg constructor of Object, so its descriptor was always the "()V" the variable was already initialized with, and the NoSuchMethodException was never thrown. Drop the whole construct. The constant descriptor means the proxied class must have a no-arg constructor, which nothing verified: the generated INVOKESPECIAL only failed once the proxy was instantiated. Check it upfront and report it as an IllegalArgumentException instead. This PR was created with help of Claude Code. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
