[forge-dev] [JBoss JIRA] Created: (SEAMFORGE-104) Method API should have the ability to add throws declarations

Paul Bakker (JIRA) jira-events at lists.jboss.org
Wed Mar 30 07:48:38 EDT 2011


Method API should have the ability to add throws declarations
-------------------------------------------------------------

                 Key: SEAMFORGE-104
                 URL: https://issues.jboss.org/browse/SEAMFORGE-104
             Project: Seam Forge
          Issue Type: Enhancement
            Reporter: Paul Bakker


There is no way to add throws declarations to methods using the builder interface now. The following demonstrates how this should work.

{code}
.addMethod()
   .setName("main")
   .setStatic()
   .setPublic()
   .setReturnTypeVoid()
   .addThrows(MyException.class)
   .addThrows(MyOtherException.class)
{code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the forge-dev mailing list