This is an automated email from the ASF dual-hosted git repository.
stevedlawrence pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/daffodil-sbt.git
The following commit(s) were added to refs/heads/main by this push:
new 2b8f779 Add -parameters to plugin build javac options
2b8f779 is described below
commit 2b8f779cdb85bda87e4d0e1d86f5d98d61f670c8
Author: Guichard Desrosiers <[email protected]>
AuthorDate: Thu May 28 15:05:47 2026 -0400
Add -parameters to plugin build javac options
Matches daffodil build setting; required by reflection-based layer wiring.
---
src/main/scala/org/apache/daffodil/DaffodilPlugin.scala | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/main/scala/org/apache/daffodil/DaffodilPlugin.scala
b/src/main/scala/org/apache/daffodil/DaffodilPlugin.scala
index b3e2f6e..a12b7eb 100644
--- a/src/main/scala/org/apache/daffodil/DaffodilPlugin.scala
+++ b/src/main/scala/org/apache/daffodil/DaffodilPlugin.scala
@@ -411,6 +411,13 @@ object DaffodilPlugin extends AutoPlugin {
Seq()
}
},
+ /**
+ * Preserve Java parameter names in bytecode for reflection.
+ * This needed to support custom Daffodil Layers written in Java.
+ * Otherwise, Java setters appear with parameters named arg0/arg1/...
+ * and cannot be matched to schema variables.
+ */
+ javacOptions += "-parameters",
/**
* See javacOptions above for details