[GRADLE-1640] StackOverflow in ear plugin Created: 24/Jun/11  Updated: 04/Jan/13  Resolved: 30/Jun/11

Status: Resolved
Project: Gradle
Affects Version/s: 1.0-milestone-4
Fix Version/s: 1.0-milestone-4

Type: Bug
Reporter: Dave Cracauer Assignee: Unassigned
Resolution: Fixed Votes: 0


 Description   

If a project contains and existing application.xml that includes a module that is also a project dependency, a stackoverflow occurs.

Changing line 67 of org.gradle.api.enterprise.archives.internal.DefaultEarModule.groovy from
if (this == obj) {
to
if (this.is(obj)) {

fixed the error on my machine.



 Comments   
Comment by David Gileadi [ 24/Jun/11 ]

Added pull request https://github.com/gradle/gradle/pull/40 with the fix. Thanks for catching the bug and describing the fix!

Generated at Wed Jun 30 12:00:41 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.