Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-13443

Precommit should detect duplicate package-info.java

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Build
    • Labels:
      None

      Description

      In SOLR-13427 we observed a situation where two package-info.java files were present in the same Java package (although in different locations):

      ./solr/core/src/test/org/apache/solr/cloud/autoscaling/sim/package-info.java
      ./solr/core/src/java/org/apache/solr/cloud/autoscaling/sim/package-info.java
      

      This causes problems with Eclipse, and possibly in other places in the build (descriptions are regular Java classes, and no two packages should have the same class name).

      ant precommit should detect this situation and produce an error.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ab Andrzej Bialecki
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: