This is an automated email from the ASF dual-hosted git repository.

jamesbognar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/juneau.git


The following commit(s) were added to refs/heads/master by this push:
     new daa8ceea95 Marshall module improvements
daa8ceea95 is described below

commit daa8ceea9527ce48f9a446c627b7f925976833cc
Author: James Bognar <[email protected]>
AuthorDate: Sun Dec 7 16:02:30 2025 -0500

    Marshall module improvements
---
 .../juneau-marshall/src/main/java/org/apache/juneau/ClassMeta.java   | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git 
a/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/ClassMeta.java 
b/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/ClassMeta.java
index 19be317d13..de15c8d5b0 100644
--- a/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/ClassMeta.java
+++ b/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/ClassMeta.java
@@ -439,10 +439,11 @@ public class ClassMeta<T> extends ClassInfoTyped<T> {
         *      <jk>true</jk> if a new instance of this bean can be created 
within the context of the specified outer object.
         */
        public boolean canCreateNewBean(Object outer) {
-               if (beanMeta == null || beanMeta.constructor == null)
+               var bm = getBeanMeta();
+               if (bm == null || bm.constructor == null)
                        return false;
                if (isMemberClass() && isNotStatic())
-                       return nn(outer) && 
beanMeta.constructor.hasParameterTypes(outer.getClass());
+                       return nn(outer) && 
bm.constructor.hasParameterTypes(outer.getClass());
                return true;
        }
 

Reply via email to