Skip to content

Changes in clue-common constructors cause build failures #1

@uxhg

Description

@uxhg

Currently build.gradle declares dependency org.clyze:clue-common:3.8.+.
But clue-common add addtitional parameters for constructors of org.clyze.persistent.model.doop.Class and org.clyze.persistent.model.doop.Method in version 3.8.33 (cf276ac).

Therefore, running ./doop ... would fail with following errors.

> Task :compileGroovy
startup failed:
/.../doop/src/main/groovy/org/clyze/jimple/JimpleListenerImpl.groovy: 62: [Static type checking] - Cannot find matching method org.clyze.persistent.model.doop.Class#<init>(org.clyze.persistent.model.Position, java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean, boolean, boolean, boolean, boolean, boolean). Please check if the declared type is correct and if the method exists.
 @ line 62, column 11.
                klass = new Klass(
             ^

/.../doop/doop-ptaint/doop/src/main/groovy/org/clyze/jimple/JimpleListenerImpl.groovy: 114: [Static type checking] - Cannot find matching method org.clyze.persistent.model.doop.Method#<init>(org.clyze.persistent.model.Position, java.lang.String, java.lang.String, java.lang.String, java.lang.String, groovy.lang.GString, <unknown parameter type>, java.lang.String[], boolean, boolean, java.lang.Boolean, java.lang.Boolean, org.clyze.persistent.model.Position). Please check if the declared type is correct and if the method exists.
 @ line 114, column 12.
                method = new Method(
              ^

2 errors
> Task :compileGroovy FAILED

The workaround is to limit the version range of clue-common.

diff --git a/build.gradle b/build.gradle
index a506fcf0..bc55dfe6 100644
--- a/build.gradle
+++ b/build.gradle
@@ -63,7 +63,7 @@ configurations.all {
 
 dependencies {
 
-    compile "org.clyze:clue-common:3.8.+",
+    compile "org.clyze:clue-common:[3.8.0, 3.8.33)",
             "org.clyze:deepdoop:0.9.+",
             "org.codehaus.groovy:groovy-all:2.4.13",            // Groovy
             "commons-logging:commons-logging:1.1",              // Logging wrapper

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions