Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-3621

Declared types : Constructor with more than 255 parameters

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      When declaring a class type in a drools file

      declare MyType
       i1:int
       i2:int
       ...
       i256:int
      end
      

      The generated MyType bean contains a constructor with ALL fields parameters, which when they exceed 255, cause an unrecoverable ClassFormatError

      Possible solutions:

      • Check this limit to skip the constructor generation in org.drools.factmodel.DefaultBeanClassBuilder.generateConstructors()
      • Maybe an explicit annotation to disable the behavior for those who don't need it?

              mfusco@redhat.com Mario Fusco
              jp_chemali JP Chemali (Inactive)
              Archiver:
              rhn-support-ceverson Clark Everson

                Created:
                Updated:
                Resolved:
                Archived: