[jboss-jira] [JBoss JIRA] (DROOLS-5376) Validation of generated packagename/classname

Gabriele Cardosi (Jira) issues at jboss.org
Mon May 25 10:44:12 EDT 2020


Gabriele Cardosi created DROOLS-5376:
----------------------------------------

             Summary: Validation of generated packagename/classname
                 Key: DROOLS-5376
                 URL: https://issues.redhat.com/browse/DROOLS-5376
             Project: Drools
          Issue Type: Task
            Reporter: Gabriele Cardosi
            Assignee: Gabriele Cardosi


Generated package/class names may clash applying sanitizePackageName/sanitizeClassName methods (i.e. we may have two packages with same name or two classes with same name).
That validation should be made before actual compilation (regardless of how it has been fired).
For package name clash, an exception must be thrown. For class name clash, probably a warn is enough (provided two classes with the same name are not created in the same package)



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the jboss-jira mailing list