You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Thomas Andraschko (JIRA)" <ji...@apache.org> on 2013/10/01 09:56:23 UTC
[jira] [Created] (DELTASPIKE-415) Nested @Folder throws
IllegalStateException
Thomas Andraschko created DELTASPIKE-415:
--------------------------------------------
Summary: Nested @Folder throws IllegalStateException
Key: DELTASPIKE-415
URL: https://issues.apache.org/jira/browse/DELTASPIKE-415
Project: DeltaSpike
Issue Type: Bug
Components: JSF-Module
Affects Versions: 0.5
Reporter: Thomas Andraschko
Example:
@Folder
public interface Views extends ViewConfig
{
@Folder
@Secured(value = LoggedInAccessDecisionVoter.class, errorView = Views.LoginRequired.class)
public interface Internal extends Views
{
@View class Home implements Internal { }
}
@View class Login implements Views { }
@View class LoginRequired implements Views { }
@View class Register implements Views { }
@View class Error extends DefaultErrorView implements Views { }
}
Exception:
java.lang.IllegalStateException: Duplicated config for the same folder configured. See: xxx.Views$Internal and xxx.Views
at org.apache.deltaspike.jsf.impl.config.view.DefaultViewConfigResolver.initCaches(DefaultViewConfigResolver.java:264)
at org.apache.deltaspike.jsf.impl.config.view.DefaultViewConfigResolver.<init>(DefaultViewConfigResolver.java:140)
at org.apache.deltaspike.jsf.impl.config.view.ViewConfigExtension.transformMetaDataTree(ViewConfigExtension.java:314)
at org.apache.deltaspike.jsf.impl.config.view.ViewConfigExtension.buildViewConfig(ViewConfigExtension.java:279)
--
This message was sent by Atlassian JIRA
(v6.1#6144)