hk2
  1. hk2
  2. HK2-181

jersey cannot work with java8 lambda code

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Complete
    • Affects Version/s: 2.1.*
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      java8

      Description

      I upgraded a running jersey app from java7 to java8. Upon trying to use lambda syntax, i found that jersey fails because it uses hk2 which in turn uses a version of ASM that does not work with java8. Here are related issues:
      https://java.net/jira/browse/HK2-140
      https://java.net/jira/browse/HK2-138
      https://java.net/jira/browse/HK2-136

      I tried the work around of excluding asm-all from jersey and then including asm 5.0 beta (which fixes the issue), however, I got "java.lang.IncompatibleClassChangeError: Implementing class".

      The goal of opening this bug is to not only have it addressed via a release, but also to find out if there is a solid, working work around for this issue in the time being.

      Thank you!

        Issue Links

          Activity

          Hide
          jwells added a comment -

          HK2 has already moved to asm 5.0_BETA in release 2.2.0. Jersey is working on integrating with it currently

          Show
          jwells added a comment - HK2 has already moved to asm 5.0_BETA in release 2.2.0. Jersey is working on integrating with it currently

            People

            • Assignee:
              jwells
              Reporter:
              doless
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: