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

Declared types : Constructor with more than 255 parameters

    Details

      Description

      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?

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mfusco Mario Fusco
                Reporter:
                jp_chemali JP Chemali
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: