kawa build from source fails - revision 8603

classic Classic list List threaded Threaded
22 messages Options
12
Reply | Threaded
Open this post in threaded view
|

kawa build from source fails - revision 8603

David Pirotte
Hello,

        david@capac:/usr/local/src/kawa/svn 14 $ svn update
        Updating '.':
        At revision 8603.

The configure step seems ok [see config.log attach for full details], but reports
some minor problems:

        david@capac:/usr/local/src/kawa/svn 16 $ ./configure --prefix=/opt
        checking whether to enable maintainer-specific portions of Makefiles... no
        ...
        config.status: creating Makefile
        chmod: cannot access 'bin/qexo': No such file or directory
        config.status: creating gnu/bytecode/Makefile
        chmod: cannot access 'bin/qexo': No such file or directory
        config.status: creating gnu/math/Makefile
        chmod: cannot access 'bin/qexo': No such file or directory
        config.status: creating gnu/Makefile
        chmod: cannot access 'bin/qexo': No such file or directory
        config.status: creating bin/kawa.sh
        chmod: cannot access 'bin/qexo': No such file or directory
        config.status: creating bin/qexo
        config.status: creating gnu/kawa/servlet/Makefile
        config.status: creating gnu/brl/Makefile
        ...

The make fails, see below

Cheers,
David



david@capac:/usr/local/src/kawa/svn 2 $ make
test -f ./.svn/entries \
&& SVN_REVISION=`cd . && svnversion 2>/dev/null` \
&& test -n "$SVN_REVISION" \
&& SVN_REVISION=" (revision ${SVN_REVISION})"; \
sed -e 's|VERSION|2.0.1'"$SVN_REVISION|" <./kawa/Version.java.in >kawa/Version.java
current java-source is ok
Making all in doc
make[1]: Entering directory '/usr/local/src/kawa/svn/doc'
nroff -man ./kawa.man > tpm-kawa.1
mv tpm-kawa.1 kawa.1
nroff -man ./qexo.man > tpm-qexo1
mv tpm-qexo1 qexo.1
make[1]: Leaving directory '/usr/local/src/kawa/svn/doc'
Making all in testsuite
make[1]: Entering directory '/usr/local/src/kawa/svn/testsuite'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/usr/local/src/kawa/svn/testsuite'
Making all in gnu/bytecode
make[1]: Entering directory '/usr/local/src/kawa/svn/gnu/bytecode'
javac -d ../.. -classpath "../..:./../..:$CLASSPATH" -g Access.java AnnotationDefaultAttr.java AnnotationEntry.java Attribute.java AttrContainer.java ObjectType.java ArrayType.java ClassType.java ConstantPool.java CpoolClass.java CpoolEntry.java CpoolInvokeDynamic.java CpoolValue1.java CpoolValue2.java CpoolNameAndType.java CpoolMethodHandle.java CpoolMethodType.java CpoolRef.java CpoolString.java CpoolUtf8.java EnclosingMethodAttr.java ExitableBlock.java Filter.java Location.java Field.java Label.java IfState.java TryState.java SwitchState.java Member.java Method.java CodeAttr.java ConstantValueAttr.java LineNumbersAttr.java LocalVarsAttr.java InnerClassesAttr.java MiscAttr.java ParameterizedType.java PrimType.java RuntimeAnnotationsAttr.java Scope.java SignatureAttr.java SourceDebugExtAttr.java SourceFileAttr.java SpecialObjectType.java StackMapTableAttr.java Type.java UninitializedType.java Variable.java VarEnumerator.java TypeVariable.java ZipArchive.java ZipLoader.java ArrayClassLoader.java ClassFileInput.java ClassTypeWriter.java ExceptionsAttr.java dump.java ListCodeSize.java
/usr/local/src/kawa/svn/gnu/bytecode/AnnotationEntry.java:10: error: The import javax.lang cannot be resolved
        import javax.lang.model.element.*;
               ^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/AnnotationEntry.java:29: warning: Type safety: The method getAnnotation(Class) belongs to the raw type Class. References to generic type Class<T> should be parameterized
        Annotation retention = getAnnotationType().getReflectClass()
      .getAnnotation(Retention.class);
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/AnnotationEntry.java:43: warning: Type safety: The method getAnnotation(Class) belongs to the raw type Class. References to generic type Class<T> should be parameterized
        Annotation target = getAnnotationType().getReflectClass()
      .getAnnotation(Target.class);
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/AnnotationEntry.java:49: warning: Unnecessary cast from ElementType[] to ElementType[]
        ElementType[] etypes = (ElementType[]) ((Target) target).value();
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/AnnotationEntry.java:97: warning: Unnecessary cast from Object to String
        val = (String) val;
              ^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/AnnotationEntry.java:103: warning: Unnecessary cast from Object to Type
        val = (Type) val;
              ^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/AnnotationEntry.java:105: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        val = Type.make((Class) val);
                         ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/AnnotationEntry.java:114: warning: Unnecessary cast from InvocationHandler to AnnotationEntry
        val = (AnnotationEntry) Proxy.getInvocationHandler(val);
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/AnnotationEntry.java:145: warning: Unnecessary cast from Class to Class<? extends Annotation>
        return (Class<? extends java.lang.annotation.Annotation>) annotationType.getReflectClass();
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/AnnotationEntry.java:258: error: AnnotationValue cannot be resolved to a type
        implements AnnotationValue
                   ^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/AnnotationEntry.java:303: warning: Type safety: Unchecked cast from Object to List<? extends AnnotationEntry.Value>
        (List<? extends AnnotationEntry.Value>) value;
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/AnnotationEntry.java:305: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        Class eltype = type.getReflectClass().getComponentType();
        ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/AnnotationEntry.java:331: warning: Enum is a raw type. References to generic type Enum<T> should be parameterized
        Class<? extends Enum> eclas = clas.asSubclass(Enum.class);
                        ^^^^
/usr/local/src/kawa/svn/gnu/bytecode/AnnotationEntry.java:332: warning: Enum is a raw type. References to generic type Enum<T> should be parameterized
        Enum val = Enum.valueOf(eclas, name);
        ^^^^
/usr/local/src/kawa/svn/gnu/bytecode/AnnotationEntry.java:332: warning: Type safety: Unchecked invocation valueOf(Class<capture#6-of ? extends Enum>, String) of the generic method valueOf(Class<S>, String) of type Enum
        Enum val = Enum.valueOf(eclas, name);
                   ^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/AnnotationEntry.java:345: error: AnnotationValueVisitor cannot be resolved to a type
        public <R,P> R accept(AnnotationValueVisitor<R,P> v, P p)
                              ^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/AnnotationEntry.java:359: warning: Type safety: Unchecked cast from Object to List<? extends AnnotationValue>
        return v.visitArray((List<? extends AnnotationValue>) value, p);
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/AnnotationEntry.java:359: error: AnnotationValue cannot be resolved to a type
        return v.visitArray((List<? extends AnnotationValue>) value, p);
                                            ^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/AnnotationEntry.java:424: warning: Type safety: Unchecked cast from Object to List<AnnotationEntry.Value>
        List<AnnotationEntry.Value> vals = (List<AnnotationEntry.Value>) value;
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/AnnotationEntry.java:450: warning: Enum is a raw type. References to generic type Enum<T> should be parameterized
        Enum evalue = (Enum) value;
        ^^^^
/usr/local/src/kawa/svn/gnu/bytecode/AnnotationEntry.java:450: warning: Enum is a raw type. References to generic type Enum<T> should be parameterized
        Enum evalue = (Enum) value;
                       ^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ObjectType.java:85: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        public static Class getContextClass (String cname)
                      ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ObjectType.java:110: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        public Class getReflectClass()
               ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ObjectType.java:135: warning: The value of the parameter name is not used
        public Field getField(String name, int mask)
                                     ^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ObjectType.java:135: warning: The value of the parameter mask is not used
        public Field getField(String name, int mask)
                                               ^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ObjectType.java:147: warning: Vector is a raw type. References to generic type Vector<T> should be parameterized
        Vector result, String context)
        ^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ObjectType.java:147: warning: The value of the parameter context is not used
        Vector result, String context)
                              ^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ObjectType.java:149: warning: Type safety: The expression of type Vector needs unchecked conversion to conform to List<Method>
        return getMethods(filter, searchSupers, result);
                                                ^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ObjectType.java:177: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        Class clas = getReflectClass();
        ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ObjectType.java:178: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        Class objClass = obj.getClass();
        ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ArrayType.java:64: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        public Class getReflectClass() {
               ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ArrayType.java:68: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        Class elClass = elements.getReflectClass();
        ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ArrayType.java:133: warning: The declared exception ObjectStreamException is not actually thrown by the method readResolve() from type ArrayType
        public Object readResolve() throws ObjectStreamException {
                                           ^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:205: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        Class clas = getReflectClass();
        ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:208: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        Class dclas;
        ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:221: warning: Constructor is a raw type. References to generic type Constructor<T> should be parameterized
        java.lang.reflect.Constructor rcons = clas.getEnclosingConstructor();
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:240: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        Class clas = getReflectClass();
        ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:242: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        Class[] memberClasses = clas.getClasses();
        ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:398: warning: TypeVariable is a raw type. References to generic type TypeVariable<T> should be parameterized
        java.lang.reflect.TypeVariable[] rparams
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:416: warning: The field Type.pointer_type is deprecated
        setSuper(name == null ? Type.pointer_type : ClassType.make(name));
                                     ^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:452: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        Class[] reflectInterfaces = reflectClass.getInterfaces();
        ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:659: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        Class clas = getReflectClass();
        ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:755: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        Class[] paramTypes = method.getParameterTypes();
        ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:767: warning: Constructor is a raw type. References to generic type Constructor<T> should be parameterized
        public Method addMethod (java.lang.reflect.Constructor method)
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:769: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        Class[] paramTypes = method.getParameterTypes();
        ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:793: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        Class[] parameterClasses = method.getParameterTypes();
        ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:817: warning: Vector is a raw type. References to generic type Vector<T> should be parameterized
        Vector vec = new Vector();
        ^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:817: warning: Vector is a raw type. References to generic type Vector<T> should be parameterized
        Vector vec = new Vector();
                         ^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:818: warning: Type safety: The expression of type Vector needs unchecked conversion to conform to List<Method>
        getMethods(filter, searchSupers, vec);
                                         ^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:836: warning: Type safety: The expression of type Vector needs unchecked conversion to conform to Vector<Method>
        Vector<Method> vec = new Vector();
                             ^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:836: warning: Vector is a raw type. References to generic type Vector<T> should be parameterized
        Vector<Method> vec = new Vector();
                                 ^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:1063: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        public synchronized void addMethods(Class clas)
                                            ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:1089: warning: Constructor is a raw type. References to generic type Constructor<T> should be parameterized
        java.lang.reflect.Constructor[] cmethods;
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:1101: warning: Constructor is a raw type. References to generic type Constructor<T> should be parameterized
        java.lang.reflect.Constructor method = cmethods[i];
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:1111: warning: Vector is a raw type. References to generic type Vector<T> should be parameterized
        java.util.Vector matches = new java.util.Vector(10);
        ^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:1111: warning: Vector is a raw type. References to generic type Vector<T> should be parameterized
        java.util.Vector matches = new java.util.Vector(10);
                                       ^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:1124: warning: Type safety: The method addElement(Object) belongs to the raw type Vector. References to generic type Vector<T> should be parameterized
        matches.addElement(method);
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:1460: warning: The static field ObjectType.EXISTING_CLASS should be accessed directly
        flags |= ClassType.EXISTING_CLASS;
                           ^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:1463: warning: The declared exception ObjectStreamException is not actually thrown by the method readResolve() from type ClassType
        public Object readResolve() throws ObjectStreamException
                                           ^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:1473: warning: Unnecessary cast from Type to Type
        Type found = (Type) map.get(name);
                     ^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Field.java:82: warning: The value of the parameter classfile is not used
        void write(DataOutputStream dstr, ClassType classfile)
                                                    ^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Label.java:37: warning: The value of the parameter code is not used
        public Label (CodeAttr code)
                               ^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Label.java:145: warning: Type safety: Unchecked cast from Object to ArrayList<Label>
        for (Label listener : (ArrayList<Label>) listeners)
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Label.java:183: warning: Type safety: Unchecked cast from Object to ArrayList<Label>
        list = (ArrayList<Label>) set;
               ^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/SwitchState.java:126: warning: The value of the parameter code is not used
        public boolean insertCase(int value, Label label, CodeAttr code) {
                                                                   ^^^^
/usr/local/src/kawa/svn/gnu/bytecode/SwitchState.java:200: warning: The field Type.string_type is deprecated
        Type[] args = { Type.string_type };
                             ^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Method.java:69: warning: The field Type.pointer_type is deprecated
        method.classfile = Type.pointer_type;
                                ^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Method.java:225: warning: The value of the parameter classfile is not used
        void write (DataOutputStream dstr, ClassType classfile)
                                                     ^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Method.java:288: warning: Unnecessary cast from Type to Type
        arg_types[i] = (Type) types.pop();
                       ^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/CodeAttr.java:745: warning: Unnecessary cast from int to long
        emitPushLong((long)val);  break;
                     ^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/CodeAttr.java:747: warning: Unnecessary cast from int to float
        emitPushFloat((float)val);  break;
                      ^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/CodeAttr.java:749: warning: Unnecessary cast from int to double
        emitPushDouble((double)val);  break;
                       ^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/CodeAttr.java:807: warning: Unnecessary cast from int to long
        else if ((long) (int) i == i)
                 ^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/CodeAttr.java:824: warning: Unnecessary cast from int to float
        if ((float) xi == x && xi >= -128 && xi < 128)
            ^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/CodeAttr.java:856: warning: Unnecessary cast from int to double
        if ((double) xi == x && xi >= -128 && xi < 128)
            ^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/CodeAttr.java:933: warning: Unnecessary cast from char to int
        int firstSegment = (int) segments.charAt(0);
                           ^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/CodeAttr.java:955: warning: Unnecessary cast from char to int
        int segEnd = segStart + (int) segments.charAt(seg);
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/CodeAttr.java:2761: warning: The value of the local variable oldPC is not used
        int oldPC = -1;
            ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/CodeAttr.java:2761: warning: The value of the local variable oldPC is not used
        int oldPC = -1;
            ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ParameterizedType.java:16: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        public Class getReflectClass() {
               ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/PrimType.java:5: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        public PrimType (String nam, String sig, int siz, Class reflectClass) {
                                                          ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/RuntimeAnnotationsAttr.java:9: error: The import javax.lang cannot be resolved
        import javax.lang.model.element.*;
               ^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/RuntimeAnnotationsAttr.java:58: warning: Type safety: Unchecked cast from Object to T
        return (T) Proxy.newProxyInstance(ann.getClass().getClassLoader(), new Class[] { clas }, ann);
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/RuntimeAnnotationsAttr.java:269: warning: Unnecessary cast from char to int
        val.index1 = constants.addInt((int)((Character) value).charValue()).index;
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/RuntimeAnnotationsAttr.java:277: warning: Type safety: Unchecked cast from Object to List<AnnotationEntry.Value>
        List<AnnotationEntry.Value> vals = (List<AnnotationEntry.Value>) value;
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/RuntimeAnnotationsAttr.java:339: warning: Type safety: Unchecked cast from Object to List<AnnotationEntry.Value>
        List<AnnotationEntry.Value> vals = (List<AnnotationEntry.Value>) value;
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Scope.java:118: warning: The value of the local variable old is not used
        Variable old;
                 ^^^
/usr/local/src/kawa/svn/gnu/bytecode/SpecialObjectType.java:40: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        public java.lang.Class getReflectClass() {
               ^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/StackMapTableAttr.java:101: warning: The value of the local variable matchingLocals is not used
        int matchingLocals = 0;
            ^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/StackMapTableAttr.java:134: warning: The value of the local variable prevType is not used
        int prevType = encodedStack[curStackCount];
            ^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/StackMapTableAttr.java:336: warning: The value of the local variable curStack is not used
        int curStack = 0;
            ^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/StackMapTableAttr.java:336: warning: The value of the local variable curStack is not used
        int curStack = 0;
            ^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Type.java:100: warning: Unnecessary cast from Type to Type
        Type type = (Type) map.get(name);
                    ^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Type.java:118: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        public synchronized static void registerTypeForClass(Class clas, Type type)
                                                             ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Type.java:130: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        public static Type make(Class reflectClass, java.lang.reflect.Type type) {
                                ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Type.java:141: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        return make((Class) type);
                     ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Type.java:181: warning: TypeVariable is a raw type. References to generic type TypeVariable<T> should be parameterized
        return TypeVariable.make((java.lang.reflect.TypeVariable) type);
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Type.java:186: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        public synchronized static Type make(Class reflectClass)
                                             ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Type.java:210: warning: Unnecessary cast from Type to Type
        type = (Type) map.get(name);
               ^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Type.java:588: warning: The value of the parameter code is not used
        public void emitCoerceToObject (CodeAttr code)
                                                 ^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Type.java:593: warning: The value of the parameter code is not used
        public void emitCoerceFromObject (CodeAttr code)
                                                   ^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Type.java:715: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        protected Class reflectClass;
                  ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Type.java:718: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        public java.lang.Class getReflectClass()
               ^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Type.java:723: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        public void setReflectClass(java.lang.Class rclass)
                                    ^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Type.java:744: error: The type Type.ClassToTypeMap must implement the inherited abstract method AbstractHashTable<AbstractWeakHashTable.WEntry<Class,Type>,Class,Type>.getEntryHashCode(Map.Entry)
        static class ClassToTypeMap extends AbstractWeakHashTable<Class,Type>
                     ^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Type.java:744: error: The type Type.ClassToTypeMap must implement the inherited abstract method AbstractHashTable<AbstractWeakHashTable.WEntry<Class,Type>,Class,Type>.getEntryNext(Map.Entry)
        static class ClassToTypeMap extends AbstractWeakHashTable<Class,Type>
                     ^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Type.java:744: error: The type Type.ClassToTypeMap must implement the inherited abstract method AbstractHashTable<AbstractWeakHashTable.WEntry<Class,Type>,Class,Type>.setEntryNext(Map.Entry, Map.Entry)
        static class ClassToTypeMap extends AbstractWeakHashTable<Class,Type>
                     ^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Type.java:744: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        static class ClassToTypeMap extends AbstractWeakHashTable<Class,Type>
                                                                  ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Type.java:746: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        protected Class getKeyFromValue (Type type)
                  ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Type.java:751: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        protected boolean matches (Class oldValue, Class newValue)
                                   ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Type.java:751: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        protected boolean matches (Class oldValue, Class newValue)
                                                   ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Variable.java:8: warning: Enumeration is a raw type. References to generic type Enumeration<E> should be parameterized
        public class Variable extends Location implements java.util.Enumeration
                                                          ^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/VarEnumerator.java:11: warning: Enumeration is a raw type. References to generic type Enumeration<E> should be parameterized
        public class VarEnumerator implements java.util.Enumeration
                                              ^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/TypeVariable.java:12: warning: TypeVariable is a raw type. References to generic type TypeVariable<T> should be parameterized
        java.lang.reflect.TypeVariable rtype;
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/TypeVariable.java:18: warning: TypeVariable is a raw type. References to generic type TypeVariable<T> should be parameterized
        public static TypeVariable make(java.lang.reflect.TypeVariable rtype) {
                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ZipArchive.java:75: warning: The declared exception IOException is not actually thrown by the method main(String[]) from type ZipArchive
        public static void main (String args[]) throws IOException
                                                       ^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ZipArchive.java:147: warning: Resource leak: 'zar' is never closed
        ZipOutputStream zar
                        ^^^
/usr/local/src/kawa/svn/gnu/bytecode/ZipArchive.java:160: warning: Resource leak: 'fin' is not closed at this location
        throw new IOException (args[i] + " - read error");
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ZipLoader.java:34: warning: Enumeration is a raw type. References to generic type Enumeration<E> should be parameterized
        java.util.Enumeration e = this.zar.entries();
        ^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ZipLoader.java:48: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        public Class loadClass (String name, boolean resolve)
               ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ZipLoader.java:48: warning: Type safety: The return type Class for loadClass(String, boolean) from the type ZipLoader needs unchecked conversion to conform to Class<?> from the type ClassLoader
        public Class loadClass (String name, boolean resolve)
               ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ZipLoader.java:51: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        Class clas;
        ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ZipLoader.java:54: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        clas = (Class) loadedClasses.elementAt(index+1);
                ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ZipLoader.java:118: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        public Class loadAllClasses ()
               ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ZipLoader.java:121: warning: Enumeration is a raw type. References to generic type Enumeration<E> should be parameterized
        java.util.Enumeration e = this.zar.entries();
        ^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ZipLoader.java:122: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        Class mainClass = null;
        ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ZipLoader.java:134: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        Class clas = defineClass (name, bytes, 0, member_size);
        ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ArrayClassLoader.java:13: warning: Hashtable is a raw type. References to generic type Hashtable<K,V> should be parameterized
        Hashtable map = new Hashtable(100);
        ^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ArrayClassLoader.java:13: warning: Hashtable is a raw type. References to generic type Hashtable<K,V> should be parameterized
        Hashtable map = new Hashtable(100);
                            ^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ArrayClassLoader.java:15: warning: Hashtable is a raw type. References to generic type Hashtable<K,V> should be parameterized
        Hashtable cmap = new Hashtable(100);
        ^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ArrayClassLoader.java:15: warning: Hashtable is a raw type. References to generic type Hashtable<K,V> should be parameterized
        Hashtable cmap = new Hashtable(100);
                             ^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ArrayClassLoader.java:51: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        public void addClass(Class clas)
                             ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ArrayClassLoader.java:53: warning: Type safety: The method put(Object, Object) belongs to the raw type Hashtable. References to generic type Hashtable<K,V> should be parameterized
        cmap.put(clas.getName(), clas);
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ArrayClassLoader.java:58: warning: Type safety: The method put(Object, Object) belongs to the raw type Hashtable. References to generic type Hashtable<K,V> should be parameterized
        map.put(name, bytes);
        ^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ArrayClassLoader.java:63: warning: Type safety: The method put(Object, Object) belongs to the raw type Hashtable. References to generic type Hashtable<K,V> should be parameterized
        map.put(ctype.getName(), ctype);
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ArrayClassLoader.java:97: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        public Class loadClass (String name, boolean resolve)
               ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ArrayClassLoader.java:97: warning: Type safety: The return type Class for loadClass(String, boolean) from the type ArrayClassLoader needs unchecked conversion to conform to Class<?> from the type ClassLoader
        public Class loadClass (String name, boolean resolve)
               ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ArrayClassLoader.java:100: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        Class clas = loadClass(name);
        ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ArrayClassLoader.java:111: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        public Class loadClass (String name)
               ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ArrayClassLoader.java:111: warning: Type safety: The return type Class for loadClass(String) from the type ArrayClassLoader needs unchecked conversion to conform to Class<?> from the type ClassLoader
        public Class loadClass (String name)
               ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ArrayClassLoader.java:115: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        return (Class) r;
                ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ArrayClassLoader.java:127: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        Class clas = defineClass(name, bytes, 0, bytes.length);
        ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ArrayClassLoader.java:128: warning: Type safety: The method put(Object, Object) belongs to the raw type Hashtable. References to generic type Hashtable<K,V> should be parameterized
        cmap.put(name, clas);
        ^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ArrayClassLoader.java:134: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        return (Class) r;
                ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassFileInput.java:19: warning: The declared exception IOException is not actually thrown by the constructor ClassFileInput(InputStream)
        throws IOException
               ^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassFileInput.java:45: warning: Resource leak: '<unassigned Closeable value>' is never closed
        new ClassFileInput(ctype, str);
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassTypeWriter.java:48: warning: Resource leak: 'writer' is never closed
        ClassTypeWriter writer = new ClassTypeWriter (ctype, stream, flags);
                        ^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassTypeWriter.java:55: warning: Resource leak: 'writer' is never closed
        ClassTypeWriter writer = new ClassTypeWriter (ctype, stream, flags);
                        ^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassTypeWriter.java:152: warning: The value of the local variable ifield is not used
        int ifield = 0;
            ^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/dump.java:267: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        Class clas = ObjectType.getContextClass(filename);
        ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ListCodeSize.java:41: warning: Resource leak: '<unassigned Closeable value>' is never closed
        new ClassFileInput(ctype, inp);
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractWeakHashTable.java:30: warning: Type safety: The expression of type AbstractWeakHashTable.WEntry needs unchecked conversion to conform to AbstractWeakHashTable.WEntry<K,V>
        protected WEntry<K,V> getEntryNext (WEntry<K,V> entry) { return entry.next; }
                                                                        ^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractWeakHashTable.java:32: warning: Type safety: Unchecked cast from AbstractWeakHashTable.WEntry[] to AbstractWeakHashTable.WEntry<K,V>[]
        protected WEntry<K,V>[] allocEntries(int n) { return (WEntry<K,V>[]) new WEntry[n]; }
                                                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractWeakHashTable.java:32: warning: Unnecessary cast from AbstractWeakHashTable.WEntry[] to AbstractWeakHashTable.WEntry<K,V>[]
        protected WEntry<K,V>[] allocEntries(int n) { return (WEntry<K,V>[]) new WEntry[n]; }
                                                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractWeakHashTable.java:68: error: Type mismatch: cannot convert from Map.Entry to AbstractWeakHashTable.WEntry<K,V>
        WEntry<K,V> first = table[index];
                            ^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractWeakHashTable.java:80: error: Type mismatch: cannot convert from Map.Entry to AbstractWeakHashTable.WEntry<K,V>
        first = table[index];
                ^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractWeakHashTable.java:90: warning: Type safety: The expression of type AbstractWeakHashTable.WEntry needs unchecked conversion to conform to AbstractWeakHashTable.WEntry<K,V>
        WEntry<K,V> next = node.next;
                           ^^^^^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractWeakHashTable.java:112: warning: The type parameter Entry is hiding the type Map<K,V>.Entry
        static <Entry extends Map.Entry<K,V>,K,V> void cleanup (AbstractHashTable<Entry,?,?> map,
                ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractWeakHashTable.java:118: warning: Type safety: Unchecked cast from Reference<capture#2-of ? extends capture#1-of ?> to Entry
        Entry oldref = (Entry) rqueue.poll();
                       ^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractWeakHashTable.java:123: error: Type mismatch: cannot convert from Map.Entry to Entry
        for (Entry node = map.table[index];
                          ^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractWeakHashTable.java:126: error: Type mismatch: cannot convert from Map.Entry to Entry
        Entry next = map.getEntryNext(node);
                     ^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractWeakHashTable.java:149: warning: AbstractWeakHashTable.WEntry is a raw type. References to generic type AbstractWeakHashTable<K,V>.WEntry<K,V> should be parameterized
        public WEntry next;
               ^^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:11: warning: Unused type parameter Entry
        public abstract class AbstractHashTable<Entry extends Map.Entry<K,V>, K, V>
                                                ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:16: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        protected Entry[] table;
                  ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:21: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        protected abstract int getEntryHashCode (Entry entry);
                                                 ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:23: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        protected abstract Entry getEntryNext (Entry entry);
                           ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:23: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        protected abstract Entry getEntryNext (Entry entry);
                                               ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:25: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        protected abstract void setEntryNext (Entry entry, Entry next);
                                              ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:25: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        protected abstract void setEntryNext (Entry entry, Entry next);
                                                           ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:27: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        protected abstract Entry[] allocEntries(int n);
                           ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:47: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        protected abstract Entry makeEntry (K key, int hash, V value);
                           ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:65: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        protected boolean matches (Object key, int hash, Entry node)
                                                         ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:67: error: The method matches(Object, int, Map.Entry) in the type AbstractHashTable<Entry,K,V> is not applicable for the arguments (Object, Object)
        return getEntryHashCode(node) == hash && matches(node.getKey(), key);
                                                 ^^^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:86: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        public Entry getNode (Object key)
               ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:90: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        for (Entry node = table[index];
             ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:102: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        Entry node = getNode(key);
        ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:103: error: Type mismatch: cannot convert from Object to V
        return node == null ? defaultValue : node.getValue();
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:114: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        Entry[] oldTable = table;
        ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:117: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        Entry[] newTable = allocEntries(newCapacity);
        ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:123: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        Entry chain = oldTable[i];
        ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:130: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        Entry prev = null;
        ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:133: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        Entry node = chain;
        ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:142: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        for (Entry element = chain;  element != null; )
             ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:144: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        Entry next = getEntryNext(element);
        ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:147: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        Entry head = newTable[j];
        ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:163: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        Entry first = table[index];
        ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:164: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        Entry node = first;
        ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:182: error: Type mismatch: cannot convert from Object to V
        V oldValue = node.getValue();
                     ^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:183: warning: Type safety: The method setValue(Object) belongs to the raw type Map.Entry. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        node.setValue(value);
        ^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:194: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        Entry prev = null;
        ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:195: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        Entry node = table[index];
        ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:198: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        Entry next = getEntryNext(node);
        ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:206: error: Type mismatch: cannot convert from Object to V
        return node.getValue();
               ^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:216: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        Entry[] t = this.table;
        ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:221: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        for (Entry e = t[i]; e != null; )
             ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:223: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        Entry next = getEntryNext(e);
        ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:240: warning: Type safety: The constructor AbstractHashTable.AbstractEntrySet(AbstractHashTable) belongs to the raw type AbstractHashTable.AbstractEntrySet. References to generic type AbstractHashTable<Entry,K,V>.AbstractEntrySet<Entry,K,V> should be parameterized
        return new AbstractEntrySet(this);
               ^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:240: warning: Type safety: The expression of type AbstractHashTable.AbstractEntrySet needs unchecked conversion to conform to Set<Map.Entry<K,V>>
        return new AbstractEntrySet(this);
               ^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:240: warning: AbstractHashTable.AbstractEntrySet is a raw type. References to generic type AbstractHashTable<Entry,K,V>.AbstractEntrySet<Entry,K,V> should be parameterized
        return new AbstractEntrySet(this);
                   ^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:243: warning: The type parameter Entry is hiding the type Map<K,V>.Entry
        static class AbstractEntrySet<Entry extends Map.Entry<K,V>, K, V> extends AbstractSet<Entry>
                                      ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:287: error: Type mismatch: cannot convert from Map.Entry to Entry
        nextEntry = htable.table[nextIndex];
                    ^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:298: error: Type mismatch: cannot convert from Map.Entry to Entry
        nextEntry = htable.getEntryNext(currentEntry);
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
202 problems (18 errors, 184 warnings)
Makefile:480: recipe for target 'java-classes.stamp' failed
make[1]: *** [java-classes.stamp] Error 1
make[1]: Leaving directory '/usr/local/src/kawa/svn/gnu/bytecode'
Makefile:490: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
david@capac:/usr/local/src/kawa/svn 3 $

config.log (9K) Download Attachment
attachment1 (484 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: kawa build from source fails - revision 8603

Per Bothner


On 09/20/2015 09:59 PM, David Pirotte wrote:

> Hello,
>
> david@capac:/usr/local/src/kawa/svn 14 $ svn update
> Updating '.':
> At revision 8603.
>
> The configure step seems ok [see config.log attach for full details], but reports
> some minor problems:
>
> david@capac:/usr/local/src/kawa/svn 16 $ ./configure --prefix=/opt
> checking whether to enable maintainer-specific portions of Makefiles... no
> ...
> config.status: creating Makefile
> chmod: cannot access 'bin/qexo': No such file or directory
> config.status: creating gnu/bytecode/Makefile
> chmod: cannot access 'bin/qexo': No such file or directory
> config.status: creating gnu/math/Makefile
> chmod: cannot access 'bin/qexo': No such file or directory
> config.status: creating gnu/Makefile
> chmod: cannot access 'bin/qexo': No such file or directory
> config.status: creating bin/kawa.sh
> chmod: cannot access 'bin/qexo': No such file or directory
> config.status: creating bin/qexo
> config.status: creating gnu/kawa/servlet/Makefile
> config.status: creating gnu/brl/Makefile

I'm seeing these as well; I'll look into it.

> The make fails, see below

> nroff -man ./kawa.man > tpm-kawa.1
> mv tpm-kawa.1 kawa.1
> nroff -man ./qexo.man > tpm-qexo1
> mv tpm-qexo1 qexo.1
> make[1]: Leaving directory '/usr/local/src/kawa/svn/doc'
> Making all in testsuite
> make[1]: Entering directory '/usr/local/src/kawa/svn/testsuite'
> make[1]: Nothing to be done for 'all'.
> make[1]: Leaving directory '/usr/local/src/kawa/svn/testsuite'
> Making all in gnu/bytecode
> make[1]: Entering directory '/usr/local/src/kawa/svn/gnu/bytecode'
> javac -d ../.. -classpath "../..:./../..:$CLASSPATH" -g Access.java AnnotationDefaultAttr.java AnnotationEntry.java Attribute.java AttrContainer.java ObjectType.java ArrayType.java ClassType.java ConstantPool.java CpoolClass.java CpoolEntry.java CpoolInvokeDynamic.java CpoolValue1.java CpoolValue2.java CpoolNameAndType.java CpoolMethodHandle.java CpoolMethodType.java CpoolRef.java CpoolString.java CpoolUtf8.java EnclosingMethodAttr.java ExitableBlock.java Filter.java Location.java Field.java Label.java IfState.java TryState.java SwitchState.java Member.java Method.java CodeAttr.java ConstantValueAttr.java LineNumbersAttr.java LocalVarsAttr.java InnerClassesAttr.java MiscAttr.java ParameterizedType.java PrimType.java RuntimeAnnotationsAttr.java Scope.java SignatureAttr.java SourceDebugExtAttr.java SourceFileAttr.java SpecialObjectType.java StackMapTableAttr.java Type.java UninitializedType.java Variable.java VarEnumerator.java TypeVariable.java ZipArchive.java ZipLoader.java ArrayCla
ssLoader.java ClassFileInput.java ClassTypeWriter.java ExceptionsAttr.java dump.java ListCodeSize.java
> /usr/local/src/kawa/svn/gnu/bytecode/AnnotationEntry.java:10: error: The import javax.lang cannot be resolved
> import javax.lang.model.element.*;

Looks like you're not neither OpenJDK or Java SE, but some other Java implementation.
Is that correct?  Looks like Eclipse-style error message, IIRC.

Either that, or or you're using Java 5.
If so you may need to --with-java-source=5 as an extra configure flag.
However, I haven't tested that in a while.
--
        --Per Bothner
[hidden email]   http://per.bothner.com/
Reply | Threaded
Open this post in threaded view
|

Re: kawa build from source fails - revision 8603

Per Bothner
In reply to this post by David Pirotte
On 09/20/2015 09:59 PM, David Pirotte wrote:

> The configure step seems ok [see config.log attach for full details], but reports
> some minor problems:
>
> david@capac:/usr/local/src/kawa/svn 16 $ ./configure --prefix=/opt
> checking whether to enable maintainer-specific portions of Makefiles... no
> ...
> config.status: creating Makefile
> chmod: cannot access 'bin/qexo': No such file or directory
> config.status: creating gnu/bytecode/Makefile
> chmod: cannot access 'bin/qexo': No such file or directory
> config.status: creating gnu/math/Makefile
> chmod: cannot access 'bin/qexo': No such file or directory
> config.status: creating gnu/Makefile
> chmod: cannot access 'bin/qexo': No such file or directory
> config.status: creating bin/kawa.sh
> chmod: cannot access 'bin/qexo': No such file or directory
> config.status: creating bin/qexo
> config.status: creating gnu/kawa/servlet/Makefile
> config.status: creating gnu/brl/Makefile

I checked in a fix for this.
--
        --Per Bothner
[hidden email]   http://per.bothner.com/
Reply | Threaded
Open this post in threaded view
|

Re: kawa build from source fails - revision 8603

David Pirotte
In reply to this post by Per Bothner

> Looks like you're not neither OpenJDK or Java SE, but some other Java
> implementation. Is that correct?  Looks like Eclipse-style error message, IIRC.
>
> Either that, or or you're using Java 5.
> If so you may need to --with-java-source=5 as an extra configure flag.
> However, I haven't tested that in a while.

david@capac:/usr/local/src/kawa/svn 19 $ java -version
java version "1.7.0_75"
OpenJDK Runtime Environment (IcedTea 2.5.4) (7u75-2.5.4-2)
OpenJDK 64-Bit Server VM (build 24.75-b04, mixed mode)



attachment0 (484 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: kawa build from source fails - revision 8603

David Pirotte
In reply to this post by Per Bothner
Hi Per,

> I checked in a fix for this.

Perfect, thanks.

attachment0 (484 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: kawa build from source fails - revision 8603

Per Bothner
In reply to this post by David Pirotte


On 09/21/2015 08:13 AM, David Pirotte wrote:

>
>> Looks like you're not neither OpenJDK or Java SE, but some other Java
>> implementation. Is that correct?  Looks like Eclipse-style error message, IIRC.
>>
>> Either that, or or you're using Java 5.
>> If so you may need to --with-java-source=5 as an extra configure flag.
>> However, I haven't tested that in a while.
>
> david@capac:/usr/local/src/kawa/svn 19 $ java -version
> java version "1.7.0_75"
> OpenJDK Runtime Environment (IcedTea 2.5.4) (7u75-2.5.4-2)
> OpenJDK 64-Bit Server VM (build 24.75-b04, mixed mode)

Strange.  I tried all of:

openjdk version "1.8.0_60"
OpenJDK Runtime Environment (build 1.8.0_60-b27)
OpenJDK 64-Bit Server VM (build 25.60-b23, mixed mode)

and

java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)

and

java version "1.6.0_37"
Java(TM) SE Runtime Environment (build 1.6.0_37-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01, mixed mode)

They all compile the 'import javax.lang.model.element.*;'
without problem.

I don't have OpenJDK 1.7 (just Java SE 1.7) to try with,
but I wouldn't expect it to be missing javax.lang.model.element.
OTOH I vaguely remember there were some problems with OpenJDK 7.
I generally run Fedora, and in the past there were some problems when
using /usr/bin/javac, so I mostly used Java SE.  However, on Fedora 22
we have OpenJDK 1.8, which works much better.  (There are still
some test-suite discrepancies I haven't tracked down.)

So I suggest switching to one of OpenJDK 8, Java SE 7, or Java SE 8.
--
        --Per Bothner
[hidden email]   http://per.bothner.com/
Reply | Threaded
Open this post in threaded view
|

Re: kawa build from source fails - revision 8603

Per Bothner


On 09/21/2015 08:54 AM, Per Bothner wrote:

> (There are still
> some test-suite discrepancies I haven't tracked down.)

False alarm.  There were some unrelated code changes I'm working on.
They caused the test-suite failures, not OpenJDK.
--
        --Per Bothner
[hidden email]   http://per.bothner.com/
Reply | Threaded
Open this post in threaded view
|

Re: kawa build from source fails - revision 8603

David Pirotte
In reply to this post by Per Bothner
Heya,

> So I suggest switching to one of OpenJDK 8, Java SE 7, or Java SE 8.

        david@capac:/usr/local/src/kawa/svn 26 $ java -version
        java version "1.7.0_85"
        OpenJDK Runtime Environment (IcedTea 2.6.1) (7u85-2.6.1-3)
        OpenJDK 64-Bit Server VM (build 24.85-b03, mixed mode)

It still fails:


david@capac:/usr/local/src/kawa/svn 10 $ make
test -f ./.svn/entries \
&& SVN_REVISION=`cd . && svnversion 2>/dev/null` \
&& test -n "$SVN_REVISION" \
&& SVN_REVISION=" (revision ${SVN_REVISION})"; \
sed -e 's|VERSION|2.0.1'"$SVN_REVISION|" <./kawa/Version.java.in >kawa/Version.java
make[1]: Entering directory '/usr/local/src/kawa/svn'
(cd .; \
/usr/bin/find . -name '*.java' -exec grep -lE ' #endif ' '{}' ';') \
  | sed -e 's|./||' | sort > patch-source-list
javac -d . ./gnu/kawa/util/PreProcess.java
/usr/local/src/kawa/svn/gnu/kawa/util/PreProcess.java:15: warning: Unnecessary cast from ArrayList[] to ArrayList<String>[]
        (ArrayList<String>[]) new ArrayList[128];
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1 problem (1 warning)
make do-preprocess SELECTOR='%java7'
make[2]: Entering directory '/usr/local/src/kawa/svn'
CLASSPATH=".:$CLASSPATH" java gnu.kawa.util.PreProcess \
  %java7 +use:com.sun.net.httpserver +enable:XML \
  `sed -e 's|\([^ ]*\)|./\1|' < ./patch-source-list`
(variant java7 maps to: +JAVA5 +JAVA2 +use:java.util.IdentityHashMap +use:java.lang.CharSequence +use:java.lang.Throwable.getCause +use:java.net.URI +use:java.util.regex +SAX2 +use:java.nio +use:org.w3c.dom.Node +use:javax.xml.transform +JAXP-1.3 -JAXP-QName +JAVA6 +JAVA7 -JAVA8 -JAVA6COMPAT5 +use:java.text.Normalizer +use:javax.lang.model +use:java.lang.invoke -Android)
make set-selected-java-source JAVA_SOURCE=7
make[3]: Entering directory '/usr/local/src/kawa/svn'
if test ! -e selected-java-source || \
   test "7" != "`cat selected-java-source`"; \
   then echo "7" >selected-java-source; \
fi
make[3]: Leaving directory '/usr/local/src/kawa/svn'
make[2]: Leaving directory '/usr/local/src/kawa/svn'
make[1]: Leaving directory '/usr/local/src/kawa/svn'
Making all in doc
make[1]: Entering directory '/usr/local/src/kawa/svn/doc'
nroff -man ./kawa.man > tpm-kawa.1
mv tpm-kawa.1 kawa.1
nroff -man ./qexo.man > tpm-qexo1
mv tpm-qexo1 qexo.1
make[1]: Leaving directory '/usr/local/src/kawa/svn/doc'
Making all in testsuite
make[1]: Entering directory '/usr/local/src/kawa/svn/testsuite'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/usr/local/src/kawa/svn/testsuite'
Making all in gnu/bytecode
make[1]: Entering directory '/usr/local/src/kawa/svn/gnu/bytecode'
javac -d ../.. -classpath "../..:./../..:$CLASSPATH" -g Access.java AnnotationDefaultAttr.java AnnotationEntry.java Attribute.java AttrContainer.java ObjectType.java ArrayType.java ClassType.java ConstantPool.java CpoolClass.java CpoolEntry.java CpoolInvokeDynamic.java CpoolValue1.java CpoolValue2.java CpoolNameAndType.java CpoolMethodHandle.java CpoolMethodType.java CpoolRef.java CpoolString.java CpoolUtf8.java EnclosingMethodAttr.java ExitableBlock.java Filter.java Location.java Field.java Label.java IfState.java TryState.java SwitchState.java Member.java Method.java CodeAttr.java ConstantValueAttr.java LineNumbersAttr.java LocalVarsAttr.java InnerClassesAttr.java MiscAttr.java ParameterizedType.java PrimType.java RuntimeAnnotationsAttr.java Scope.java SignatureAttr.java SourceDebugExtAttr.java SourceFileAttr.java SpecialObjectType.java StackMapTableAttr.java Type.java UninitializedType.java Variable.java VarEnumerator.java TypeVariable.java ZipArchive.java ZipLoader.java ArrayClassLoader.java ClassFileInput.java ClassTypeWriter.java ExceptionsAttr.java dump.java ListCodeSize.java
/usr/local/src/kawa/svn/gnu/bytecode/AnnotationEntry.java:10: error: The import javax.lang cannot be resolved
        import javax.lang.model.element.*;
               ^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/AnnotationEntry.java:29: warning: Type safety: The method getAnnotation(Class) belongs to the raw type Class. References to generic type Class<T> should be parameterized
        Annotation retention = getAnnotationType().getReflectClass()
      .getAnnotation(Retention.class);
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/AnnotationEntry.java:43: warning: Type safety: The method getAnnotation(Class) belongs to the raw type Class. References to generic type Class<T> should be parameterized
        Annotation target = getAnnotationType().getReflectClass()
      .getAnnotation(Target.class);
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/AnnotationEntry.java:49: warning: Unnecessary cast from ElementType[] to ElementType[]
        ElementType[] etypes = (ElementType[]) ((Target) target).value();
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/AnnotationEntry.java:97: warning: Unnecessary cast from Object to String
        val = (String) val;
              ^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/AnnotationEntry.java:103: warning: Unnecessary cast from Object to Type
        val = (Type) val;
              ^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/AnnotationEntry.java:105: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        val = Type.make((Class) val);
                         ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/AnnotationEntry.java:114: warning: Unnecessary cast from InvocationHandler to AnnotationEntry
        val = (AnnotationEntry) Proxy.getInvocationHandler(val);
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/AnnotationEntry.java:145: warning: Unnecessary cast from Class to Class<? extends Annotation>
        return (Class<? extends java.lang.annotation.Annotation>) annotationType.getReflectClass();
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/AnnotationEntry.java:258: error: AnnotationValue cannot be resolved to a type
        implements AnnotationValue
                   ^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/AnnotationEntry.java:303: warning: Type safety: Unchecked cast from Object to List<? extends AnnotationEntry.Value>
        (List<? extends AnnotationEntry.Value>) value;
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/AnnotationEntry.java:305: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        Class eltype = type.getReflectClass().getComponentType();
        ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/AnnotationEntry.java:331: warning: Enum is a raw type. References to generic type Enum<T> should be parameterized
        Class<? extends Enum> eclas = clas.asSubclass(Enum.class);
                        ^^^^
/usr/local/src/kawa/svn/gnu/bytecode/AnnotationEntry.java:332: warning: Enum is a raw type. References to generic type Enum<T> should be parameterized
        Enum val = Enum.valueOf(eclas, name);
        ^^^^
/usr/local/src/kawa/svn/gnu/bytecode/AnnotationEntry.java:332: warning: Type safety: Unchecked invocation valueOf(Class<capture#6-of ? extends Enum>, String) of the generic method valueOf(Class<S>, String) of type Enum
        Enum val = Enum.valueOf(eclas, name);
                   ^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/AnnotationEntry.java:345: error: AnnotationValueVisitor cannot be resolved to a type
        public <R,P> R accept(AnnotationValueVisitor<R,P> v, P p)
                              ^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/AnnotationEntry.java:359: warning: Type safety: Unchecked cast from Object to List<? extends AnnotationValue>
        return v.visitArray((List<? extends AnnotationValue>) value, p);
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/AnnotationEntry.java:359: error: AnnotationValue cannot be resolved to a type
        return v.visitArray((List<? extends AnnotationValue>) value, p);
                                            ^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/AnnotationEntry.java:424: warning: Type safety: Unchecked cast from Object to List<AnnotationEntry.Value>
        List<AnnotationEntry.Value> vals = (List<AnnotationEntry.Value>) value;
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/AnnotationEntry.java:450: warning: Enum is a raw type. References to generic type Enum<T> should be parameterized
        Enum evalue = (Enum) value;
        ^^^^
/usr/local/src/kawa/svn/gnu/bytecode/AnnotationEntry.java:450: warning: Enum is a raw type. References to generic type Enum<T> should be parameterized
        Enum evalue = (Enum) value;
                       ^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ObjectType.java:85: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        public static Class getContextClass (String cname)
                      ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ObjectType.java:110: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        public Class getReflectClass()
               ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ObjectType.java:135: warning: The value of the parameter name is not used
        public Field getField(String name, int mask)
                                     ^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ObjectType.java:135: warning: The value of the parameter mask is not used
        public Field getField(String name, int mask)
                                               ^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ObjectType.java:147: warning: Vector is a raw type. References to generic type Vector<T> should be parameterized
        Vector result, String context)
        ^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ObjectType.java:147: warning: The value of the parameter context is not used
        Vector result, String context)
                              ^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ObjectType.java:149: warning: Type safety: The expression of type Vector needs unchecked conversion to conform to List<Method>
        return getMethods(filter, searchSupers, result);
                                                ^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ObjectType.java:177: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        Class clas = getReflectClass();
        ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ObjectType.java:178: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        Class objClass = obj.getClass();
        ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ArrayType.java:64: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        public Class getReflectClass() {
               ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ArrayType.java:68: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        Class elClass = elements.getReflectClass();
        ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ArrayType.java:133: warning: The declared exception ObjectStreamException is not actually thrown by the method readResolve() from type ArrayType
        public Object readResolve() throws ObjectStreamException {
                                           ^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:205: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        Class clas = getReflectClass();
        ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:208: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        Class dclas;
        ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:221: warning: Constructor is a raw type. References to generic type Constructor<T> should be parameterized
        java.lang.reflect.Constructor rcons = clas.getEnclosingConstructor();
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:240: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        Class clas = getReflectClass();
        ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:242: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        Class[] memberClasses = clas.getClasses();
        ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:398: warning: TypeVariable is a raw type. References to generic type TypeVariable<T> should be parameterized
        java.lang.reflect.TypeVariable[] rparams
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:416: warning: The field Type.pointer_type is deprecated
        setSuper(name == null ? Type.pointer_type : ClassType.make(name));
                                     ^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:452: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        Class[] reflectInterfaces = reflectClass.getInterfaces();
        ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:659: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        Class clas = getReflectClass();
        ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:755: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        Class[] paramTypes = method.getParameterTypes();
        ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:767: warning: Constructor is a raw type. References to generic type Constructor<T> should be parameterized
        public Method addMethod (java.lang.reflect.Constructor method)
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:769: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        Class[] paramTypes = method.getParameterTypes();
        ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:793: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        Class[] parameterClasses = method.getParameterTypes();
        ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:817: warning: Vector is a raw type. References to generic type Vector<T> should be parameterized
        Vector vec = new Vector();
        ^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:817: warning: Vector is a raw type. References to generic type Vector<T> should be parameterized
        Vector vec = new Vector();
                         ^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:818: warning: Type safety: The expression of type Vector needs unchecked conversion to conform to List<Method>
        getMethods(filter, searchSupers, vec);
                                         ^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:836: warning: Type safety: The expression of type Vector needs unchecked conversion to conform to Vector<Method>
        Vector<Method> vec = new Vector();
                             ^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:836: warning: Vector is a raw type. References to generic type Vector<T> should be parameterized
        Vector<Method> vec = new Vector();
                                 ^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:1063: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        public synchronized void addMethods(Class clas)
                                            ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:1089: warning: Constructor is a raw type. References to generic type Constructor<T> should be parameterized
        java.lang.reflect.Constructor[] cmethods;
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:1101: warning: Constructor is a raw type. References to generic type Constructor<T> should be parameterized
        java.lang.reflect.Constructor method = cmethods[i];
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:1111: warning: Vector is a raw type. References to generic type Vector<T> should be parameterized
        java.util.Vector matches = new java.util.Vector(10);
        ^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:1111: warning: Vector is a raw type. References to generic type Vector<T> should be parameterized
        java.util.Vector matches = new java.util.Vector(10);
                                       ^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:1124: warning: Type safety: The method addElement(Object) belongs to the raw type Vector. References to generic type Vector<T> should be parameterized
        matches.addElement(method);
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:1460: warning: The static field ObjectType.EXISTING_CLASS should be accessed directly
        flags |= ClassType.EXISTING_CLASS;
                           ^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:1463: warning: The declared exception ObjectStreamException is not actually thrown by the method readResolve() from type ClassType
        public Object readResolve() throws ObjectStreamException
                                           ^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassType.java:1473: warning: Unnecessary cast from Type to Type
        Type found = (Type) map.get(name);
                     ^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Field.java:82: warning: The value of the parameter classfile is not used
        void write(DataOutputStream dstr, ClassType classfile)
                                                    ^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Label.java:37: warning: The value of the parameter code is not used
        public Label (CodeAttr code)
                               ^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Label.java:145: warning: Type safety: Unchecked cast from Object to ArrayList<Label>
        for (Label listener : (ArrayList<Label>) listeners)
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Label.java:183: warning: Type safety: Unchecked cast from Object to ArrayList<Label>
        list = (ArrayList<Label>) set;
               ^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/SwitchState.java:126: warning: The value of the parameter code is not used
        public boolean insertCase(int value, Label label, CodeAttr code) {
                                                                   ^^^^
/usr/local/src/kawa/svn/gnu/bytecode/SwitchState.java:200: warning: The field Type.string_type is deprecated
        Type[] args = { Type.string_type };
                             ^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Method.java:69: warning: The field Type.pointer_type is deprecated
        method.classfile = Type.pointer_type;
                                ^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Method.java:225: warning: The value of the parameter classfile is not used
        void write (DataOutputStream dstr, ClassType classfile)
                                                     ^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Method.java:288: warning: Unnecessary cast from Type to Type
        arg_types[i] = (Type) types.pop();
                       ^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/CodeAttr.java:745: warning: Unnecessary cast from int to long
        emitPushLong((long)val);  break;
                     ^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/CodeAttr.java:747: warning: Unnecessary cast from int to float
        emitPushFloat((float)val);  break;
                      ^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/CodeAttr.java:749: warning: Unnecessary cast from int to double
        emitPushDouble((double)val);  break;
                       ^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/CodeAttr.java:807: warning: Unnecessary cast from int to long
        else if ((long) (int) i == i)
                 ^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/CodeAttr.java:824: warning: Unnecessary cast from int to float
        if ((float) xi == x && xi >= -128 && xi < 128)
            ^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/CodeAttr.java:856: warning: Unnecessary cast from int to double
        if ((double) xi == x && xi >= -128 && xi < 128)
            ^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/CodeAttr.java:933: warning: Unnecessary cast from char to int
        int firstSegment = (int) segments.charAt(0);
                           ^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/CodeAttr.java:955: warning: Unnecessary cast from char to int
        int segEnd = segStart + (int) segments.charAt(seg);
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/CodeAttr.java:2761: warning: The value of the local variable oldPC is not used
        int oldPC = -1;
            ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/CodeAttr.java:2761: warning: The value of the local variable oldPC is not used
        int oldPC = -1;
            ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ParameterizedType.java:16: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        public Class getReflectClass() {
               ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/PrimType.java:5: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        public PrimType (String nam, String sig, int siz, Class reflectClass) {
                                                          ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/RuntimeAnnotationsAttr.java:9: error: The import javax.lang cannot be resolved
        import javax.lang.model.element.*;
               ^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/RuntimeAnnotationsAttr.java:58: warning: Type safety: Unchecked cast from Object to T
        return (T) Proxy.newProxyInstance(ann.getClass().getClassLoader(), new Class[] { clas }, ann);
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/RuntimeAnnotationsAttr.java:269: warning: Unnecessary cast from char to int
        val.index1 = constants.addInt((int)((Character) value).charValue()).index;
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/RuntimeAnnotationsAttr.java:277: warning: Type safety: Unchecked cast from Object to List<AnnotationEntry.Value>
        List<AnnotationEntry.Value> vals = (List<AnnotationEntry.Value>) value;
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/RuntimeAnnotationsAttr.java:339: warning: Type safety: Unchecked cast from Object to List<AnnotationEntry.Value>
        List<AnnotationEntry.Value> vals = (List<AnnotationEntry.Value>) value;
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Scope.java:118: warning: The value of the local variable old is not used
        Variable old;
                 ^^^
/usr/local/src/kawa/svn/gnu/bytecode/SpecialObjectType.java:40: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        public java.lang.Class getReflectClass() {
               ^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/StackMapTableAttr.java:101: warning: The value of the local variable matchingLocals is not used
        int matchingLocals = 0;
            ^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/StackMapTableAttr.java:134: warning: The value of the local variable prevType is not used
        int prevType = encodedStack[curStackCount];
            ^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/StackMapTableAttr.java:336: warning: The value of the local variable curStack is not used
        int curStack = 0;
            ^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/StackMapTableAttr.java:336: warning: The value of the local variable curStack is not used
        int curStack = 0;
            ^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Type.java:100: warning: Unnecessary cast from Type to Type
        Type type = (Type) map.get(name);
                    ^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Type.java:118: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        public synchronized static void registerTypeForClass(Class clas, Type type)
                                                             ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Type.java:130: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        public static Type make(Class reflectClass, java.lang.reflect.Type type) {
                                ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Type.java:141: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        return make((Class) type);
                     ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Type.java:181: warning: TypeVariable is a raw type. References to generic type TypeVariable<T> should be parameterized
        return TypeVariable.make((java.lang.reflect.TypeVariable) type);
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Type.java:186: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        public synchronized static Type make(Class reflectClass)
                                             ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Type.java:210: warning: Unnecessary cast from Type to Type
        type = (Type) map.get(name);
               ^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Type.java:588: warning: The value of the parameter code is not used
        public void emitCoerceToObject (CodeAttr code)
                                                 ^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Type.java:593: warning: The value of the parameter code is not used
        public void emitCoerceFromObject (CodeAttr code)
                                                   ^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Type.java:715: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        protected Class reflectClass;
                  ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Type.java:718: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        public java.lang.Class getReflectClass()
               ^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Type.java:723: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        public void setReflectClass(java.lang.Class rclass)
                                    ^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Type.java:744: error: The type Type.ClassToTypeMap must implement the inherited abstract method AbstractHashTable<AbstractWeakHashTable.WEntry<Class,Type>,Class,Type>.getEntryHashCode(Map.Entry)
        static class ClassToTypeMap extends AbstractWeakHashTable<Class,Type>
                     ^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Type.java:744: error: The type Type.ClassToTypeMap must implement the inherited abstract method AbstractHashTable<AbstractWeakHashTable.WEntry<Class,Type>,Class,Type>.getEntryNext(Map.Entry)
        static class ClassToTypeMap extends AbstractWeakHashTable<Class,Type>
                     ^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Type.java:744: error: The type Type.ClassToTypeMap must implement the inherited abstract method AbstractHashTable<AbstractWeakHashTable.WEntry<Class,Type>,Class,Type>.setEntryNext(Map.Entry, Map.Entry)
        static class ClassToTypeMap extends AbstractWeakHashTable<Class,Type>
                     ^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Type.java:744: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        static class ClassToTypeMap extends AbstractWeakHashTable<Class,Type>
                                                                  ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Type.java:746: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        protected Class getKeyFromValue (Type type)
                  ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Type.java:751: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        protected boolean matches (Class oldValue, Class newValue)
                                   ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Type.java:751: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        protected boolean matches (Class oldValue, Class newValue)
                                                   ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/Variable.java:8: warning: Enumeration is a raw type. References to generic type Enumeration<E> should be parameterized
        public class Variable extends Location implements java.util.Enumeration
                                                          ^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/VarEnumerator.java:11: warning: Enumeration is a raw type. References to generic type Enumeration<E> should be parameterized
        public class VarEnumerator implements java.util.Enumeration
                                              ^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/TypeVariable.java:12: warning: TypeVariable is a raw type. References to generic type TypeVariable<T> should be parameterized
        java.lang.reflect.TypeVariable rtype;
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/TypeVariable.java:18: warning: TypeVariable is a raw type. References to generic type TypeVariable<T> should be parameterized
        public static TypeVariable make(java.lang.reflect.TypeVariable rtype) {
                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ZipArchive.java:75: warning: The declared exception IOException is not actually thrown by the method main(String[]) from type ZipArchive
        public static void main (String args[]) throws IOException
                                                       ^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ZipArchive.java:147: warning: Resource leak: 'zar' is never closed
        ZipOutputStream zar
                        ^^^
/usr/local/src/kawa/svn/gnu/bytecode/ZipArchive.java:160: warning: Resource leak: 'fin' is not closed at this location
        throw new IOException (args[i] + " - read error");
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ZipLoader.java:34: warning: Enumeration is a raw type. References to generic type Enumeration<E> should be parameterized
        java.util.Enumeration e = this.zar.entries();
        ^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ZipLoader.java:48: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        public Class loadClass (String name, boolean resolve)
               ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ZipLoader.java:48: warning: Type safety: The return type Class for loadClass(String, boolean) from the type ZipLoader needs unchecked conversion to conform to Class<?> from the type ClassLoader
        public Class loadClass (String name, boolean resolve)
               ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ZipLoader.java:51: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        Class clas;
        ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ZipLoader.java:54: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        clas = (Class) loadedClasses.elementAt(index+1);
                ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ZipLoader.java:118: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        public Class loadAllClasses ()
               ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ZipLoader.java:121: warning: Enumeration is a raw type. References to generic type Enumeration<E> should be parameterized
        java.util.Enumeration e = this.zar.entries();
        ^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ZipLoader.java:122: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        Class mainClass = null;
        ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ZipLoader.java:134: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        Class clas = defineClass (name, bytes, 0, member_size);
        ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ArrayClassLoader.java:13: warning: Hashtable is a raw type. References to generic type Hashtable<K,V> should be parameterized
        Hashtable map = new Hashtable(100);
        ^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ArrayClassLoader.java:13: warning: Hashtable is a raw type. References to generic type Hashtable<K,V> should be parameterized
        Hashtable map = new Hashtable(100);
                            ^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ArrayClassLoader.java:15: warning: Hashtable is a raw type. References to generic type Hashtable<K,V> should be parameterized
        Hashtable cmap = new Hashtable(100);
        ^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ArrayClassLoader.java:15: warning: Hashtable is a raw type. References to generic type Hashtable<K,V> should be parameterized
        Hashtable cmap = new Hashtable(100);
                             ^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ArrayClassLoader.java:51: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        public void addClass(Class clas)
                             ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ArrayClassLoader.java:53: warning: Type safety: The method put(Object, Object) belongs to the raw type Hashtable. References to generic type Hashtable<K,V> should be parameterized
        cmap.put(clas.getName(), clas);
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ArrayClassLoader.java:58: warning: Type safety: The method put(Object, Object) belongs to the raw type Hashtable. References to generic type Hashtable<K,V> should be parameterized
        map.put(name, bytes);
        ^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ArrayClassLoader.java:63: warning: Type safety: The method put(Object, Object) belongs to the raw type Hashtable. References to generic type Hashtable<K,V> should be parameterized
        map.put(ctype.getName(), ctype);
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ArrayClassLoader.java:97: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        public Class loadClass (String name, boolean resolve)
               ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ArrayClassLoader.java:97: warning: Type safety: The return type Class for loadClass(String, boolean) from the type ArrayClassLoader needs unchecked conversion to conform to Class<?> from the type ClassLoader
        public Class loadClass (String name, boolean resolve)
               ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ArrayClassLoader.java:100: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        Class clas = loadClass(name);
        ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ArrayClassLoader.java:111: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        public Class loadClass (String name)
               ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ArrayClassLoader.java:111: warning: Type safety: The return type Class for loadClass(String) from the type ArrayClassLoader needs unchecked conversion to conform to Class<?> from the type ClassLoader
        public Class loadClass (String name)
               ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ArrayClassLoader.java:115: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        return (Class) r;
                ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ArrayClassLoader.java:127: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        Class clas = defineClass(name, bytes, 0, bytes.length);
        ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ArrayClassLoader.java:128: warning: Type safety: The method put(Object, Object) belongs to the raw type Hashtable. References to generic type Hashtable<K,V> should be parameterized
        cmap.put(name, clas);
        ^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ArrayClassLoader.java:134: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        return (Class) r;
                ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassFileInput.java:19: warning: The declared exception IOException is not actually thrown by the constructor ClassFileInput(InputStream)
        throws IOException
               ^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassFileInput.java:45: warning: Resource leak: '<unassigned Closeable value>' is never closed
        new ClassFileInput(ctype, str);
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassTypeWriter.java:48: warning: Resource leak: 'writer' is never closed
        ClassTypeWriter writer = new ClassTypeWriter (ctype, stream, flags);
                        ^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassTypeWriter.java:55: warning: Resource leak: 'writer' is never closed
        ClassTypeWriter writer = new ClassTypeWriter (ctype, stream, flags);
                        ^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ClassTypeWriter.java:152: warning: The value of the local variable ifield is not used
        int ifield = 0;
            ^^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/dump.java:267: warning: Class is a raw type. References to generic type Class<T> should be parameterized
        Class clas = ObjectType.getContextClass(filename);
        ^^^^^
/usr/local/src/kawa/svn/gnu/bytecode/ListCodeSize.java:41: warning: Resource leak: '<unassigned Closeable value>' is never closed
        new ClassFileInput(ctype, inp);
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractWeakHashTable.java:30: warning: Type safety: The expression of type AbstractWeakHashTable.WEntry needs unchecked conversion to conform to AbstractWeakHashTable.WEntry<K,V>
        protected WEntry<K,V> getEntryNext (WEntry<K,V> entry) { return entry.next; }
                                                                        ^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractWeakHashTable.java:32: warning: Type safety: Unchecked cast from AbstractWeakHashTable.WEntry[] to AbstractWeakHashTable.WEntry<K,V>[]
        protected WEntry<K,V>[] allocEntries(int n) { return (WEntry<K,V>[]) new WEntry[n]; }
                                                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractWeakHashTable.java:32: warning: Unnecessary cast from AbstractWeakHashTable.WEntry[] to AbstractWeakHashTable.WEntry<K,V>[]
        protected WEntry<K,V>[] allocEntries(int n) { return (WEntry<K,V>[]) new WEntry[n]; }
                                                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractWeakHashTable.java:68: error: Type mismatch: cannot convert from Map.Entry to AbstractWeakHashTable.WEntry<K,V>
        WEntry<K,V> first = table[index];
                            ^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractWeakHashTable.java:80: error: Type mismatch: cannot convert from Map.Entry to AbstractWeakHashTable.WEntry<K,V>
        first = table[index];
                ^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractWeakHashTable.java:90: warning: Type safety: The expression of type AbstractWeakHashTable.WEntry needs unchecked conversion to conform to AbstractWeakHashTable.WEntry<K,V>
        WEntry<K,V> next = node.next;
                           ^^^^^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractWeakHashTable.java:112: warning: The type parameter Entry is hiding the type Map<K,V>.Entry
        static <Entry extends Map.Entry<K,V>,K,V> void cleanup (AbstractHashTable<Entry,?,?> map,
                ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractWeakHashTable.java:118: warning: Type safety: Unchecked cast from Reference<capture#2-of ? extends capture#1-of ?> to Entry
        Entry oldref = (Entry) rqueue.poll();
                       ^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractWeakHashTable.java:123: error: Type mismatch: cannot convert from Map.Entry to Entry
        for (Entry node = map.table[index];
                          ^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractWeakHashTable.java:126: error: Type mismatch: cannot convert from Map.Entry to Entry
        Entry next = map.getEntryNext(node);
                     ^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractWeakHashTable.java:149: warning: AbstractWeakHashTable.WEntry is a raw type. References to generic type AbstractWeakHashTable<K,V>.WEntry<K,V> should be parameterized
        public WEntry next;
               ^^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:11: warning: Unused type parameter Entry
        public abstract class AbstractHashTable<Entry extends Map.Entry<K,V>, K, V>
                                                ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:16: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        protected Entry[] table;
                  ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:21: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        protected abstract int getEntryHashCode (Entry entry);
                                                 ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:23: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        protected abstract Entry getEntryNext (Entry entry);
                           ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:23: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        protected abstract Entry getEntryNext (Entry entry);
                                               ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:25: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        protected abstract void setEntryNext (Entry entry, Entry next);
                                              ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:25: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        protected abstract void setEntryNext (Entry entry, Entry next);
                                                           ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:27: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        protected abstract Entry[] allocEntries(int n);
                           ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:47: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        protected abstract Entry makeEntry (K key, int hash, V value);
                           ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:65: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        protected boolean matches (Object key, int hash, Entry node)
                                                         ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:67: error: The method matches(Object, int, Map.Entry) in the type AbstractHashTable<Entry,K,V> is not applicable for the arguments (Object, Object)
        return getEntryHashCode(node) == hash && matches(node.getKey(), key);
                                                 ^^^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:86: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        public Entry getNode (Object key)
               ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:90: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        for (Entry node = table[index];
             ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:102: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        Entry node = getNode(key);
        ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:103: error: Type mismatch: cannot convert from Object to V
        return node == null ? defaultValue : node.getValue();
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:114: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        Entry[] oldTable = table;
        ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:117: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        Entry[] newTable = allocEntries(newCapacity);
        ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:123: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        Entry chain = oldTable[i];
        ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:130: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        Entry prev = null;
        ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:133: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        Entry node = chain;
        ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:142: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        for (Entry element = chain;  element != null; )
             ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:144: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        Entry next = getEntryNext(element);
        ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:147: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        Entry head = newTable[j];
        ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:163: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        Entry first = table[index];
        ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:164: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        Entry node = first;
        ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:182: error: Type mismatch: cannot convert from Object to V
        V oldValue = node.getValue();
                     ^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:183: warning: Type safety: The method setValue(Object) belongs to the raw type Map.Entry. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        node.setValue(value);
        ^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:194: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        Entry prev = null;
        ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:195: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        Entry node = table[index];
        ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:198: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        Entry next = getEntryNext(node);
        ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:206: error: Type mismatch: cannot convert from Object to V
        return node.getValue();
               ^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:216: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        Entry[] t = this.table;
        ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:221: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        for (Entry e = t[i]; e != null; )
             ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:223: warning: Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
        Entry next = getEntryNext(e);
        ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:240: warning: Type safety: The constructor AbstractHashTable.AbstractEntrySet(AbstractHashTable) belongs to the raw type AbstractHashTable.AbstractEntrySet. References to generic type AbstractHashTable<Entry,K,V>.AbstractEntrySet<Entry,K,V> should be parameterized
        return new AbstractEntrySet(this);
               ^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:240: warning: Type safety: The expression of type AbstractHashTable.AbstractEntrySet needs unchecked conversion to conform to Set<Map.Entry<K,V>>
        return new AbstractEntrySet(this);
               ^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:240: warning: AbstractHashTable.AbstractEntrySet is a raw type. References to generic type AbstractHashTable<Entry,K,V>.AbstractEntrySet<Entry,K,V> should be parameterized
        return new AbstractEntrySet(this);
                   ^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:243: warning: The type parameter Entry is hiding the type Map<K,V>.Entry
        static class AbstractEntrySet<Entry extends Map.Entry<K,V>, K, V> extends AbstractSet<Entry>
                                      ^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:287: error: Type mismatch: cannot convert from Map.Entry to Entry
        nextEntry = htable.table[nextIndex];
                    ^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/src/kawa/svn/gnu/kawa/util/AbstractHashTable.java:298: error: Type mismatch: cannot convert from Map.Entry to Entry
        nextEntry = htable.getEntryNext(currentEntry);
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
202 problems (18 errors, 184 warnings)
Makefile:480: recipe for target 'java-classes.stamp' failed
make[1]: *** [java-classes.stamp] Error 1
make[1]: Leaving directory '/usr/local/src/kawa/svn/gnu/bytecode'
Makefile:490: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
david@capac:/usr/local/src/kawa/svn 11 $

attachment0 (484 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: kawa build from source fails - revision 8603

Per Bothner


On 09/21/2015 11:26 AM, David Pirotte wrote:

> Heya,
>
>> So I suggest switching to one of OpenJDK 8, Java SE 7, or Java SE 8.
>
> david@capac:/usr/local/src/kawa/svn 26 $ java -version
> java version "1.7.0_85"
> OpenJDK Runtime Environment (IcedTea 2.6.1) (7u85-2.6.1-3)
> OpenJDK 64-Bit Server VM (build 24.85-b03, mixed mode)
>
> It still fails:

The above is not a version string from one of OpenJDK 8, Java SE 7, or Java SE 8.
(It is OpenJDK 7.)
--
        --Per Bothner
[hidden email]   http://per.bothner.com/
Reply | Threaded
Open this post in threaded view
|

Re: kawa build from source fails - revision 8603

David Pirotte


> > david@capac:/usr/local/src/kawa/svn 26 $ java -version
> > java version "1.7.0_85"
> > OpenJDK Runtime Environment (IcedTea 2.6.1) (7u85-2.6.1-3)
> > OpenJDK 64-Bit Server VM (build 24.85-b03, mixed mode)
> >
> > It still fails:
>
> The above is not a version string from one of OpenJDK 8, Java SE 7, or Java SE 8.
> (It is OpenJDK 7.)

Sorry, I don't understand what you're are trying to tell me, neither why neither what
to do to make it compile. My understanding is if configure pass, compile must pass,
that's my experience, maybe you should improve your configure.ac file

David

attachment0 (484 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: kawa build from source fails - revision 8603

Per Bothner
On 09/21/2015 11:47 AM, David Pirotte wrote:

>>> david@capac:/usr/local/src/kawa/svn 26 $ java -version
>>> java version "1.7.0_85"
>>> OpenJDK Runtime Environment (IcedTea 2.6.1) (7u85-2.6.1-3)
>>> OpenJDK 64-Bit Server VM (build 24.85-b03, mixed mode)
>>>
>>> It still fails:
>>
>> The above is not a version string from one of OpenJDK 8, Java SE 7, or Java SE 8.
>> (It is OpenJDK 7.)
>
> Sorry, I don't understand what you're are trying to tell me, neither why neither what
> to do to make it compile.

Your installed Java implementation is not supported.

Note that OpenJDK (the open-source project) is not the same as Java SE / JDK
(the bundle released by Oracle).  The latter is based on the former, but there
are some differences.  The differences are bigger for Java 7, but still there
for Java 8.  (For example OpenJDK 8 does not include JavaFX.)

The easiest fix is to grab and install Java SE 8 aka JDK 8 from here:

http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Just untar the download file somewhere convenient, and have your PATH
point to the bin directory (containing javac).

Or upgrade to OpenJDK 8 - though of course this depends on your OS:

http://openjdk.java.net/install/

>My understanding is if configure pass, compile must pass,

Where did you get that from?  configure is not required or expected
to guard against every possible bad compiler or environment.

True, some configure scripts do check for known bad compilers or other
known problems, and that's a good thing to do.  Perhaps Kawa should do
that - though not many people have run into this problem, to my knowledge.

> that's my experience, maybe you should improve your configure.ac file

Patches welcome.
--
        --Per Bothner
[hidden email]   http://per.bothner.com/
Reply | Threaded
Open this post in threaded view
|

Re: kawa build from source fails - revision 8603

David Pirotte
Per,

> Your installed Java implementation is not supported.

Tha's a good candidate for configure.ac

> http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Out of question, sorry: I strictly refuse to install/use anything coming from oracle

> Patches welcome.

I have too many projects under my umbrella already :)

Cheers,
David

attachment0 (484 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: kawa build from source fails - revision 8603

Felipe Bueno
Oh, man, Kawa doesn't work with OpenJDK 7/8? What a bummer :(

Felipe


2015-09-21 16:28 GMT-03:00 David Pirotte <[hidden email]>:

> Per,
>
>> Your installed Java implementation is not supported.
>
> Tha's a good candidate for configure.ac
>
>> http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
>
> Out of question, sorry: I strictly refuse to install/use anything coming from oracle
>
>> Patches welcome.
>
> I have too many projects under my umbrella already :)
>
> Cheers,
> David
Reply | Threaded
Open this post in threaded view
|

Re: kawa build from source fails - revision 8603

Jamison Hope
On Sep 21, 2015, at 3:35 PM, Felipe Bueno <[hidden email]> wrote:

> Oh, man, Kawa doesn't work with OpenJDK 7/8? What a bummer :(

"not supported" != "doesn't work"

I just tried building a clean checkout of Kawa in a VM with

$ java -version
java version "1.7.0_79"
OpenJDK Runtime Environment (IcedTea 2.5.6) (7u79-2.5.6-0ubuntu1.14.04.1)
OpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode)

and it builds and runs just fine, using either ant or ./configure && make


So David's problem is not universal with OpenJDK 7.  Perhaps his particular
installation of OpenJDK 7 is broken.

-JH

>
> Felipe
>
>
> 2015-09-21 16:28 GMT-03:00 David Pirotte <[hidden email]>:
>> Per,
>>
>>> Your installed Java implementation is not supported.
>>
>> Tha's a good candidate for configure.ac
>>
>>> http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
>>
>> Out of question, sorry: I strictly refuse to install/use anything coming from oracle
>>
>>> Patches welcome.
>>
>> I have too many projects under my umbrella already :)
>>
>> Cheers,
>> David

--
Jamison Hope
The PTR Group
www.theptrgroup.com



Reply | Threaded
Open this post in threaded view
|

Re: kawa build from source fails - revision 8603

David Pirotte

> "not supported" != "doesn't work"

I can't engage my free software micro consultancy in using and recommending kawa,
it has to support, above all, OpenJDK, otherwise any problem will be 'because
yourjava is not java, and is not supported' ...

> So David's problem is not universal with OpenJDK 7.  Perhaps his particular
> installation of OpenJDK 7 is broken.

this would be a debian testing packaging/installation problem? I doubt but I can't
neither do i have to the time to confirm this.

David

attachment0 (484 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: kawa build from source fails - revision 8603

Andrea Bernardini
On Mon, 21 Sep 2015 17:34:51 -0300
David Pirotte <[hidden email]> wrote:

> this would be a debian testing packaging/installation problem? I
> doubt but I can't neither do i have to the time to confirm this.

I just tried to build from source on debian testing with OpenJDK 7 and
it works for me. Can you try the following and post  here the output?

make clean
make distclean
svn update
make

Andrea

Reply | Threaded
Open this post in threaded view
|

Re: kawa build from source fails - revision 8603

David Pirotte
Andrea,

> > this would be a debian testing packaging/installation problem? I
> > doubt but I can't neither do i have to the time to confirm this.

> I just tried to build from source on debian testing with OpenJDK 7 and
> it works for me. Can you try the following and post  here the output?

> make clean
> make distclean
> svn update
> make

That is exactly what I did before to send this report:

        http://sourceware.org/ml/kawa/2015-q3/msg00065.html

        [ revision 8604 ]

But I did not know OpenJDK was not supported, I thought it was the only being
supported.  Not being the only does obviously not mater, but being supported is
essential for me.

Cheers,
David

attachment0 (484 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: kawa build from source fails - revision 8603

Jamison Hope
In reply to this post by David Pirotte
On Sep 21, 2015, at 4:34 PM, David Pirotte <[hidden email]> wrote:

>> "not supported" != "doesn't work"
>
> I can't engage my free software micro consultancy in using and recommending kawa,
> it has to support, above all, OpenJDK, otherwise any problem will be 'because
> yourjava is not java, and is not supported' ...

I believe Per did say that OpenJDK 8 is supported, just not 7.  A few messages
ago he suggested:

>>> Or upgrade to OpenJDK 8 - though of course this depends on your OS:


The supported platform set IIUC consists of "versions of Java that Per has
installed on his own machine today", since he has to be able to test it in
order to claim support.

I'm sure if somebody else wants to commit to periodically running tests on
some other version and reporting the results, Per would be willing to add
that platform to the list.

>> So David's problem is not universal with OpenJDK 7.  Perhaps his particular
>> installation of OpenJDK 7 is broken.
>
> this would be a debian testing packaging/installation problem? I doubt but I can't
> neither do i have to the time to confirm this.

Perhaps?  All I know is that it works fine with OpenJDK 7 under Mint.

I haven't messed with Java-on-Debian in a while, but I seem to recall that
the /etc/alternatives symlinks didn't always get updated the way they should.
Have you made sure that all of the java-related symlinks are pointing at the
same JDK directories/binaries?  A version mismatch might produce the errors
you're seeing.

--
Jamison Hope
The PTR Group
www.theptrgroup.com



Reply | Threaded
Open this post in threaded view
|

Re: kawa build from source fails - revision 8603

Andrea Bernardini
In reply to this post by David Pirotte
To check if it's an installation problem I would try to build again
after running this command:

sudo update-java-alternatives -s java-1.7.0-openjdk-amd64

Even better, If it's fine with you to use OpenJDK 8, I would try:

sudo apt-get install openjdk-8-jre openjdk-8-jdk
sudo update-java-alternatives -s java-1.8.0-openjdk-amd64

Also check that java and javac are set to the same version:

sudo update-alternatives --config java
sudo update-alternatives --config javac

Andrea
Reply | Threaded
Open this post in threaded view
|

Re: kawa build from source fails - revision 8603

Jamison Hope
In reply to this post by David Pirotte
David,

On Sep 21, 2015, at 5:31 PM, David Pirotte <[hidden email]> wrote:

> Andrea,
>
>>> this would be a debian testing packaging/installation problem? I
>>> doubt but I can't neither do i have to the time to confirm this.
>
>> I just tried to build from source on debian testing with OpenJDK 7 and
>> it works for me. Can you try the following and post  here the output?
>
>> make clean
>> make distclean
>> svn update
>> make
>
> That is exactly what I did before to send this report:
>
> http://sourceware.org/ml/kawa/2015-q3/msg00065.html
>
> [ revision 8604 ]
>
> But I did not know OpenJDK was not supported, I thought it was the only being
> supported.  Not being the only does obviously not mater, but being supported is
> essential for me.

I just installed Debian Testing in a VM, installed OpenJDK 7, and built Kawa.
There were no errors building with make or with ant.

$ java -version
OpenJDK Runtime Environment (IcedTea 2.6.1) (7u85-2.6.1-3)
OpenJDK 64-Bit Server VM (build 24.85-b03, mixed mode)

So, [Debian Testing / OpenJDK 7 / Kawa] works fine for both Andrea and me.
It's got to be a problem specific to your machine.


--
Jamison Hope
The PTR Group
www.theptrgroup.com



12