Parser error on valid generic array constructor reference

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Low
    • open-source
    • Affects Version/s: 4.1.1
    • Component/s: Instrumentation
    • None
    • Severity 3 - Minor

      Clover seems to fail to parse Generic array constructor references, even though javac is happy to accept it.

      e.g.

      IntFunction<Class<?>[]> f = Class<?>[]::new;
      

      as a workaround you can use non generic classes:

      IntFunction<Class[]> f = Class[]::new;
      

              Assignee:
              Unassigned
              Reporter:
              jhinch (Atlassian)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: