4 Replies Latest reply on Oct 16, 2007 5:18 PM by jason.greene

    @XmlElement(defaultValue="...")

    starksm64

      I'm not seeing an element get populated with a default value if the property has this specified, for example:

       @XmlElement(defaultValue="org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock")
       public void setLockingPolicy(String lockingPolicy)
       {
       if (lockingPolicy == null)
       throw new IllegalArgumentException("Null lockingPolicy");
       this.lockingPolicy = lockingPolicy;
       }
      


      Accessing the lockPolicy value after parsing a document without a locking-policy element does not produce the indicated default value. Shouldn't this?