Uploaded image for project: 'Clover'
  1. Clover
  2. CLOV-1947

Parser error on valid generic array constructor reference

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Low Low
    • open-source
    • 4.1.1
    • 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;
      

            [CLOV-1947] Parser error on valid generic array constructor reference

            Hi Jason, thank you very much for reporting this problem.

            Marek Parfianowicz added a comment - Hi Jason, thank you very much for reporting this problem.

              Unassigned Unassigned
              jhinch jhinch (Atlassian)
              Affected customers:
              0 This affects my team
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: