Avro
  1. Avro
  2. AVRO-1298

Documentation says wrong usage of Parser

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Invalid
    • Affects Version/s: 1.7.3, 1.7.4
    • Fix Version/s: None
    • Component/s: java
    • Labels:
      None

      Description

      Documentation : http://avro.apache.org/docs/1.7.3/gettingstartedjava.html#download_install

      The below usage does not work

      Schema schema = new Parser().parse(new File("user.avsc"));

        Activity

        Sujesh Chirackkal made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Invalid [ 6 ]
        Sujesh Chirackkal made changes -
        Field Original Value New Value
        Description Documentation : http://avro.apache.org/docs/1.7.3/gettingstartedjava.html#download_install

        The below usage does not work

        Schema schema = new Parser().parse(new File("user.avsc"));

        Had to use

        Schema schema = new Schema().parse(new Parser("user.avsc"));

        Documentation : http://avro.apache.org/docs/1.7.3/gettingstartedjava.html#download_install

        The below usage does not work

        Schema schema = new Parser().parse(new File("user.avsc"));

        Sujesh Chirackkal created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Sujesh Chirackkal
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development