ramanathan1504 commented on code in PR #4442:
URL: https://github.com/apache/logging-log4j2/pull/4442#discussion_r4492355158
##########
log4j-core-test/src/test/resources/GraalVmProcessorTest/java/FakePlugin.java:
##########
@@ -70,6 +71,12 @@ public static class Builder implements
org.apache.logging.log4j.core.util.Builde
@SuppressWarnings("log4j.public.setter")
private int attributeWithoutPublicSetterButWithSuppressAnnotation;
+ @PluginAttribute("attributeField")
+ private String attributeField;
+
+ @Required
+ private String requiredOnly;
Review Comment:
No test fails when the `NotBlank`, `ValidHost` or `ValidPort` entries are
removed from `Annotations` or `GraalVmProcessor`. Can this builder get one
constraint-only field for each, like `requiredOnly`, with the expected field
list and folder hash in `GraalVmProcessorTest` updated?
##########
src/changelog/.2.x.x/4441_fix_graalvm_plugin_builder_fields.xml:
##########
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<entry xmlns="https://logging.apache.org/xml/ns"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="
+ https://logging.apache.org/xml/ns
+ https://logging.apache.org/xml/ns/log4j-changelog-0.xsd"
+ type="fixed">
+ <issue id="4441"
link="https://github.com/apache/logging-log4j2/issues/4441"/>
+ <issue id="4442" link="https://github.com/apache/logging-log4j2/pull/4442"/>
+ <description format="asciidoc">
+ Fix plugin builders that fail in GraalVM native images, because some of
their fields have no reflection metadata.
Review Comment:
The changelog line is read as a list, so a shorter one fits better:
```suggestion
Fix plugin builders failing in GraalVM native images.
```
--
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]