[seam-issues] [JBoss JIRA] Updated: (SEAMWICKET-37) Wrong exception message in NonContextual.postConstruct()

Ondrej Zizka (JIRA) jira-events at lists.jboss.org
Mon May 23 21:00:00 EDT 2011


     [ https://issues.jboss.org/browse/SEAMWICKET-37?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

        


More information about the seam-issues mailing list