Re: Gradle upgrade issues (#976330)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Il 27/10/2013 14:16, puntogil@xxxxxxxxx ha scritto:
hi


> That's a generic problem and it's not really Gradle-specific.  But yes,
> there are some version problems, most notably Objectweb ASM.  Different
> Gradle dependencies use versions 3 and 4 (shaded to avoid namespace
> conflicts).  Fedora does not allow bundled libraries, which causes
> conflict between ASM 3 and 4.  (Porting from ASM 3 to ASM 4 is possible,
> but non-trivial as there were major changes. This would again require
> some work.)

with gradle 1.8 (this version require anr 1.9.2)build.launcher:
    [mkdir] Created dir: ~/gradle-1.8/subprojects/launcher/build/classes
    [javac] ~/gradle-1.8/build.xml:1740: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 148 source files to ~/gradle-1.8/subprojects/launcher/build/classes
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6
    [javac] ~/gradle-1.8/subprojects/launcher/src/main/java/org/gradle/tooling/internal/provider/ModelClassLoaderFactory.java:85: error: no interface expected here
    [javac]         private static class AnnotationDetector extends ClassVisitor {
    [javac]                                                         ^
    [javac] ~/gradle-1.8/subprojects/launcher/src/main/java/org/gradle/tooling/internal/provider/ModelClassLoaderFactory.java:110: error: no interface expected here
    [javac]         private static class TransformingAdapter extends ClassVisitor {
    [javac]                                                          ^
    [javac] ~/gradle-1.8/subprojects/launcher/src/main/java/org/gradle/tooling/internal/provider/ClasspathInferer.java:96: error: cannot find symbol
    [javac]             char[] charBuffer = new char[reader.getMaxStringLength()];
    [javac]                                                ^
    [javac]   symbol:   method getMaxStringLength()
    [javac]   location: variable reader of type ClassReader
    [javac] ~/gradle-1.8/subprojects/launcher/src/main/java/org/gradle/tooling/internal/provider/ClasspathInferer.java:97: error: cannot find symbol
    [javac]             for (int i = 1; i < reader.getItemCount(); i++) {
    [javac]                                       ^
    [javac]   symbol:   method getItemCount()
    [javac]   location: variable reader of type ClassReader
    [javac] ~/gradle-1.8/subprojects/launcher/src/main/java/org/gradle/tooling/internal/provider/ModelClassLoaderFactory.java:65: error: no suitable method found for accept(AnnotationDetector,int)
    [javac]             classReader.accept(detector, ClassReader.SKIP_DEBUG | ClassReader.SKIP_CODE);
    [javac]                        ^
    [javac]     method ClassReader.accept(ClassVisitor,Attribute[],int) is not applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac]     method ClassReader.accept(ClassVisitor,int) is not applicable
    [javac]       (actual argument AnnotationDetector cannot be converted to ClassVisitor by method invocation conversion)
    [javac] ~/gradle-1.8/subprojects/launcher/src/main/java/org/gradle/tooling/internal/provider/ModelClassLoaderFactory.java:80: error: no suitable method found for accept(TransformingAdapter,int)
    [javac]             classReader.accept(new TransformingAdapter(classWriter, detector.interfaceName), 0);
    [javac]                        ^
    [javac]     method ClassReader.accept(ClassVisitor,Attribute[],int) is not applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac]     method ClassReader.accept(ClassVisitor,int) is not applicable
    [javac]       (actual argument TransformingAdapter cannot be converted to ClassVisitor by method invocation conversion)
    [javac] ~/gradle-1.8/subprojects/launcher/src/main/java/org/gradle/tooling/internal/provider/ModelClassLoaderFactory.java:91: error: cannot find symbol
    [javac]                 super(Opcodes.ASM4);
    [javac]                              ^
    [javac]   symbol:   variable ASM4
    [javac]   location: interface Opcodes
    [javac] ~/gradle-1.8/subprojects/launcher/src/main/java/org/gradle/tooling/internal/provider/ModelClassLoaderFactory.java:98: error: cannot find symbol
    [javac]                 return new AnnotationVisitor(Opcodes.ASM4) {
    [javac]                                                     ^
    [javac]   symbol:   variable ASM4
    [javac]   location: interface Opcodes
    [javac] ~/gradle-1.8/subprojects/launcher/src/main/java/org/gradle/tooling/internal/provider/ModelClassLoaderFactory.java:98: error: <anonymous org.gradle.tooling.internal.provider.ModelClassLoaderFactory$MixInClassLoader$AnnotationDetector$1> is not abstract and does not override abstract method visitEnd() in AnnotationVisitor
    [javac]                 return new AnnotationVisitor(Opcodes.ASM4) {
    [javac]                                                            ^
    [javac] ~/gradle-1.8/subprojects/launcher/src/main/java/org/gradle/tooling/internal/provider/ModelClassLoaderFactory.java:114: error: cannot find symbol
    [javac]                 super(Opcodes.ASM4, classWriter);
    [javac]                              ^
    [javac]   symbol:   variable ASM4
    [javac]   location: interface Opcodes
    [javac] ~/gradle-1.8/subprojects/launcher/src/main/java/org/gradle/tooling/internal/provider/ModelClassLoaderFactory.java:122: error: non-static variable super cannot be referenced from a static context
    [javac]                 super.visit(version, access, name, signature, superName, allInterfaces.toArray(new String[allInterfaces.size()]));
    [javac]                 ^
    [javac] ~/gradle-1.8/subprojects/launcher/src/main/java/org/gradle/tooling/internal/provider/ModelClassLoaderFactory.java:122: error: method visit in class MutableURLClassLoader cannot be applied to given types;
    [javac]                 super.visit(version, access, name, signature, superName, allInterfaces.toArray(new String[allInterfaces.size()]));
    [javac]                      ^
    [javac]   required: ClassLoaderVisitor
    [javac]   found: int,int,String,String,String,String[]
    [javac]   reason: actual and formal argument lists differ in length
    [javac] ~/gradle-1.8/subprojects/launcher/src/main/java/org/gradle/tooling/internal/provider/ModelClassLoaderFactory.java:118: error: method does not override or implement a method from a supertype
    [javac]             @Override
    [javac]             ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 13 errors
    [javac] 1 warning

--
java-devel mailing list
java-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/java-devel

begin:vcard
fn:gil
n:;gil
email;internet:puntogil@xxxxxxxxx
version:2.1
end:vcard

--
java-devel mailing list
java-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/java-devel

[Index of Archives]     [Red Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux