Uploaded image for project: 'QuickFIX/J'
  1. QuickFIX/J
  2. QFJ-327

Compiling the source under jdk 1.5.x; inconvertible types

    Details

    • Type: Other
    • Status: Closed
    • Priority: Default
    • Resolution: Fixed
    • Affects Version/s: 1.3.1
    • Fix Version/s: None
    • Component/s: Build
    • Labels:
      None

      Description

      Just tried to compile the source with "ant jar" under jdk 1.5.x because the new release 1.3.2 seems to be compiled wiht a newer version ("Bad version number in .class File").

      I got the following:
      --------------------------------------------------------
      compile_main:
      [javac] Compiling 1431 source files to /private/tmp/qfixsrc/quickfixj/core/target/classes/main
      [javac] /private/tmp/qfixsrc/quickfixj/core/src/main/java/quickfix/FieldMap.java:211: inconvertible types
      [javac] found : quickfix.Field<capture of ?>
      [javac] required: quickfix.StringField
      [javac] StringField f = (StringField) fields.get(field);
      [javac] ^
      [javac] /private/tmp/qfixsrc/quickfixj/core/src/main/java/quickfix/FieldMap.java:358: inconvertible types
      [javac] found : quickfix.Field<capture of ?>
      [javac] required: quickfix.BytesField
      [javac] else if (!(returnField instanceof BytesField))
      [javac] ^
      [javac] /private/tmp/qfixsrc/quickfixj/core/src/main/java/quickfix/FieldMap.java:362: inconvertible types
      [javac] found : quickfix.Field<capture of ?>
      [javac] required: quickfix.BytesField
      [javac] return (BytesField) returnField;
      [javac] ^
      [javac] /private/tmp/qfixsrc/quickfixj/core/src/main/java/quickfix/DataDictionary.java:589: inconvertible types
      [javac] found : quickfix.Field<capture of ?>
      [javac] required: quickfix.StringField
      [javac] StringField field = (StringField) iterator.next();
      [javac] ^
      [javac] Note: Some input files use or override a deprecated API.
      [javac] Note: Recompile with -Xlint:deprecation for details.
      [javac] 4 errors

      BUILD FAILED
      /private/tmp/qfixsrc/quickfixj/build.xml:36: The following error occurred while executing this line:
      /private/tmp/qfixsrc/quickfixj/build.xml:27: The following error occurred while executing this line:
      /private/tmp/qfixsrc/quickfixj/core/build.xml:80: The following error occurred while executing this line:
      /private/tmp/qfixsrc/quickfixj/core/build.xml:85: The following error occurred while executing this line:
      /private/tmp/qfixsrc/quickfixj/core/build.xml:104: Compile failed; see the compiler error output for details.

      --------------------------------------------------------

      Do you have any suggestions how to solve the problem ?.

      Thanks
      Thomas

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              thuegel Thomas Hügel
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: