shiro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Krassimir (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SHIRO-559) shiro-guice violates the JEE specification
Date Fri, 05 Feb 2016 11:39:39 GMT
Krassimir created SHIRO-559:
-------------------------------

             Summary: shiro-guice violates the JEE specification
                 Key: SHIRO-559
                 URL: https://issues.apache.org/jira/browse/SHIRO-559
             Project: Shiro
          Issue Type: Bug
            Reporter: Krassimir


The [DestroyableRegistry.destroy() method (line 65/66)|http://svn.apache.org/repos/asf/shiro/tags/shiro-root-1.2.4/support/guice/src/main/java/org/apache/shiro/guice/ShiroModule.java],
annotated with @PreDestroy throws a checked exception which violates the [specification|http://docs.oracle.com/javaee/7/api/javax/annotation/PreDestroy.html],
which makes it impossible for a shiro-guice powered application to be deployed on Glassfish.

Here is the exact error message:
{code}
The lifecycle method [destroy] must not throw a checked exception. Related annotation information:
annotation [javax.annotation.PreDestroy()] on annotated element [public void org.apache.shiro.guice.ShiroModule$1.destroy()
throws java.lang.Exception] of type [METHOD] The lifecycle method [destroy] must not throw
a checked exception. Related annotation information: annotation [javax.annotation.PreDestroy()]
on annotated element [public void org.apache.shiro.guice.ShiroModule$1.destroy() throws java.lang.Exception]
of type [METHOD]
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message