Skip to content

Add Factory documentation example & get rid to ObjectCreationException #6

Description

@Ichigo85

Hello,
I'm trying to use your library but sometimes I receive exceptions for complex beans (Unsupported Property Types) especially on the equals verification. I tried to ignore the specified property, but since it's significant for the equals method, I receiver a ObjectCreationException,
org.meanbean.factories.ObjectCreationException: Failed to create a value for property [data].
The problem is: This 'data' property is from an external library bean which has a private empty constructor, and I don't know how to get rid of this exception.
Also tried to use addSuppressWarning(Warning.DYNAMICALLY_CREATED_FACTORY) and warnings are still there 😅
Can you help me?
Thank you very much.

Simple clarification:

public class MyBean {
    private Message message; // external library class

    // getters & setters
}

public class Message { // from externa library

    private MessageData[] data;
    // getters & setters

   // -> inner class MessageData
   public static class MessageData {
      public MessageData(byte[] data], ...){}
      
     private MessageData() {}
     
     // getters & setters
   }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions