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

Parser error on valid generic array constructor reference

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Low
    • open-source
    • 4.1.1
    • Instrumentation
    • None
    • Severity 3 - Minor

    Description

      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;
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: