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

            Michael Andreacchio made changes -
            Resolution New: Won't Fix [ 2 ]
            Status Original: Open [ 1 ] New: Closed [ 6 ]
            Marek Parfianowicz made changes -
            Fix Version/s New: open-source [ 56395 ]
            jonah (Inactive) made changes -
            Symptom Severity New: Minor [ 14432 ]
            Owen made changes -
            Workflow Original: New Clover Workflow [ 1400089 ] New: New Clover Workflow - Restricted [ 1475357 ]
            jhinch (Atlassian) created issue -

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

                Created:
                Updated:
                Resolved: