gnodet commented on issue #12587: URL: https://github.com/apache/maven/issues/12587#issuecomment-5457539369
Closing as invalid after investigation. The file `compat/maven-compat/src/main/java/org/apache/maven/artifact/DefaultArtifactHandler.java` **does not exist** in the compat module and never has. The only `DefaultArtifactHandler` is at `impl/maven-core/src/main/java/org/apache/maven/artifact/handler/DefaultArtifactHandler.java`. It is a plain POJO — **no delegate field, no wrapping pattern**. Methods like `getExtension()` and `getPackaging()` fall back to `type` when their field is null; `getLanguage()` defaults to `"none"`; `getClassifier()` returns `null` by design (most artifacts have no classifier). The `DefaultArtifactHandlerManager` creates instances using the full constructor, properly copying values from the Maven 4 `TypeRegistry` into the POJO fields. Methods return correct values when constructed through `DefaultArtifactHandlerManager`. -- 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]
