[jboss-jira] [JBoss JIRA] Created: (JASSIST-68) Remove limitation on public constructors

Erik Putrycz (JIRA) jira-events at lists.jboss.org
Fri Nov 28 15:40:37 EST 2008


Remove limitation on public constructors
----------------------------------------

                 Key: JASSIST-68
                 URL: https://jira.jboss.org/jira/browse/JASSIST-68
             Project: Javassist
          Issue Type: Feature Request
    Affects Versions: 3.8.1.GA
            Reporter: Erik Putrycz
            Assignee: Shigeru Chiba


Currently when extending a class with javassist, it is required that the superclass has a public constructor. However, in some cases, this is not a necessary constraint.
For instance when extending a class and generating a factory with Javassist, it is better to hide the constructor to prevent users to bypass the factory, and this is not possible currently.
This would involve a minor change in inheritAllConstructors() in class CtNewClass

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list