Issue Details (XML | Word | Printable)

Key: MNG-3619
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Dennis Lundberg
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Maven 2

Dependency.equals(Object):boolean is missing for version 4.0.0 POMs

Created: 09/Jun/08 12:37 PM   Updated: 12/Jun/08 09:17 PM
Component/s: POM
Affects Version/s: 2.0.x
Fix Version/s: 3.0

Time Tracking:
Not Specified

Complexity: Intermediate


 Description  « Hide
The modello file for the 2.0.x branch does not have a <codeSegment> for 4.0.0 POMs that implements equals(Object):boolean. Modello doesn't generate one automatically either. Perhaps upgrading to a newer version of the modello plugin will solve this.

http://svn.apache.org/viewvc/maven/components/branches/maven-2.0.x/maven-model/src/main/mdo/maven.mdo?revision=659677&view=markup

There is a <codeSegment> for 3.0.0 POMs only:

/**
     * @see java.lang.Object#equals(java.lang.Object)
     */
    public boolean equals( Object o )
    {
        if ( this == o )
        {
            return true;
        }

        if ( !( o instanceof Dependency ) )
        {
            return false;
        }

        Dependency d  = (Dependency) o;
        return getId().equals( d.getId() );
    }


 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.