Details

    • Type: Task
    • Status: Reopened
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.7
    • Fix Version/s: 2.0, 1.17
    • Component/s: None
    • Labels:
      None
    • Flags:
      Patch

      Description

      Currently the Class file parser uses ASM 4.1. This older version cannot read Java 8 / Java 9 class files (fails with Exception).

      The upgrade to ASM 5.0.4 is very simple, just Maven dependency change. The code change is only to update the visitor version, so it gets new Java 8 features like lambdas reported, but this is not really required, but should be done for full support.

      FYI, in LUCENE-6729 we want to upgrade the Lucene Expressions module to ASM 5, too.

      You can hot-swap ASM 4.1 with ASM 5.0.4 without recompilation (so we have no problem with Lucene using a newer version). Since ASM 4.x the updates are more easy (no visitor interfaces anymore, instead abstract classes), so it does not break if you just replace the JAR file. So just see this as a recommendatation, not urgent! Solr/Lucene will also work without this patch (it just replaces the shipped ASM by newer version in our packaging).

        Attachments

        1. TIKA-1705-2.patch
          0.4 kB
          Uwe Schindler
        2. TIKA-1705.patch
          1 kB
          Uwe Schindler

          Issue Links

            Activity

              People

              • Assignee:
                davemeikle Dave Meikle
                Reporter:
                thetaphi Uwe Schindler
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: