[jboss-jira] [JBoss JIRA] (JBRULES-3621) Declared types : Constructor with more than 255 parameters
RH Bugzilla Integration (JIRA)
jira-events at lists.jboss.org
Fri Sep 13 09:15:05 EDT 2013
[ https://issues.jboss.org/browse/JBRULES-3621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12804165#comment-12804165 ]
RH Bugzilla Integration commented on JBRULES-3621:
--------------------------------------------------
Jiri Locker <jlocker at redhat.com> made a comment on [bug 990701|https://bugzilla.redhat.com/show_bug.cgi?id=990701]
Verified. 1,000 fields can be added, validation OK.
> Declared types : Constructor with more than 255 parameters
> ----------------------------------------------------------
>
> Key: JBRULES-3621
> URL: https://issues.jboss.org/browse/JBRULES-3621
> Project: JBRULES
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: drools-core (expert)
> Affects Versions: 5.4.0.Final
> Reporter: JP Chemali
> Assignee: Mario Fusco
> Fix For: 5.5.0.Beta1
>
>
> When declaring a class type in a drools file
> {code:Java}
> declare MyType
> i1:int
> i2:int
> ...
> i256:int
> end
> {code}
> 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?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list