You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ji...@codehaus.org on 2004/10/23 08:23:09 UTC

[jira] Closed: (MAVEN-1066) No way to (re)initialize properties on a BaseObject subclass

Message:

   The following issue has been closed.

   Resolver: Brett Porter
       Date: Sat, 23 Oct 2004 2:22 AM

BaseObject is no longer in existence in 1.1
---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MAVEN-1066

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-1066
    Summary: No way to (re)initialize properties on a BaseObject subclass
       Type: Bug

     Status: Closed
   Priority: Critical
 Resolution: WON'T FIX

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven
 Components: 
             model
   Versions:
             1.0-rc1

   Assignee: 
   Reporter: Jeffrey Bonevich

    Created: Wed, 3 Dec 2003 12:48 AM
    Updated: Sat, 23 Oct 2004 2:22 AM

Description:
The resolvedProperties() method gives me access to the 'properties' field, so I can empty it if need be.  getProperties(), setProperties() and addProperty() all access combinedProperties w/o consequentially touching properties.  But all other accessors assume that 'properties' need only be initialized if it is null. What happens when 'properties' is emptied, but then new combinedProperties are added. In mevenide, I want to be able to remove all combinedProperties and properties, and then add a new set.

Here are some suggested fixes:
(1) make resolveProperties() public so it can be called to reinit the properties list (a hack)
(2) check properties for emptiness as well as nullness (also a hack - just means that property-less objects are biased against)
(3) invalidate properties whenever addProperty() or setProperties() gets called (preferred)


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org