[
https://issues.jboss.org/browse/SEAMWICKET-37?page=com.atlassian.jira.plu...
]
Ondrej Zizka updated SEAMWICKET-37:
-----------------------------------
Affects Version/s: 3.0.0.Final
Description:
preDestroy() should be postConstruct()
{code}
/**
* Call the @PostConstruct callback
*
* @return
*/
public Instance<T> postConstruct()
{
if (this.instance == null)
{
throw new IllegalStateException("Trying to call postConstruct() before
produce() was called");
}
if (disposed)
{
throw new IllegalStateException("Trying to call preDestroy() on already
disposed instance");
}
injectionTarget.postConstruct(instance);
return this;
}
{code}
was:
{code}
/**
* Call the @PostConstruct callback
*
* @return
*/
public Instance<T> postConstruct()
{
if (this.instance == null)
{
throw new IllegalStateException("Trying to call postConstruct() before
produce() was called");
}
if (disposed)
{
throw new IllegalStateException("Trying to call preDestroy() on already
disposed instance");
}
injectionTarget.postConstruct(instance);
return this;
}
{code}
Wrong exception message in NonContextual.postConstruct()
--------------------------------------------------------
Key: SEAMWICKET-37
URL:
https://issues.jboss.org/browse/SEAMWICKET-37
Project: Seam for Apache Wicket
Issue Type: Bug
Affects Versions: 3.0.0.Final
Reporter: Ondrej Zizka
Priority: Minor
preDestroy() should be postConstruct()
{code}
/**
* Call the @PostConstruct callback
*
* @return
*/
public Instance<T> postConstruct()
{
if (this.instance == null)
{
throw new IllegalStateException("Trying to call postConstruct() before
produce() was called");
}
if (disposed)
{
throw new IllegalStateException("Trying to call preDestroy() on already
disposed instance");
}
injectionTarget.postConstruct(instance);
return this;
}
{code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira