You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Nick Griffiths (JIRA)" <ji...@apache.org> on 2011/04/17 16:42:05 UTC
[jira] [Commented] (DAEMON-199) DaemonWrapper fails when the
wrapped class does not have a (or restricts the visibility of its)
no-argument constructor
[ https://issues.apache.org/jira/browse/DAEMON-199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13020804#comment-13020804 ]
Nick Griffiths commented on DAEMON-199:
---------------------------------------
You could always create your own shim to do this, seeing as no-one wants to accept your patch.
> DaemonWrapper fails when the wrapped class does not have a (or restricts the visibility of its) no-argument constructor
> -----------------------------------------------------------------------------------------------------------------------
>
> Key: DAEMON-199
> URL: https://issues.apache.org/jira/browse/DAEMON-199
> Project: Commons Daemon
> Issue Type: Bug
> Affects Versions: 1.0.5
> Reporter: Tom Dyas
> Attachments: commons-daemon.patch
>
>
> When using DaemonWrapper to wrap an existing Java class, DaemonWrapper assumes that it can instantiate the class using a no-argument constructor. I tried to use DaemonWrapper to wrap a bootstrap class that declared the no-argument constructor as private. The wrapped class had a static main method and so could be used by the ordinary Java bootstrap procedure. The attached patch fixes the issue.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira