Details
-
Bug
-
Resolution: Done
-
Major
-
5.4.0.Final
-
None
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?