Uploaded image for project: 'Commons JEXL'
  1. Commons JEXL
  2. JEXL-88

MethodKey.java - name clash getMostSpecific() with Java 1.5.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0
    • None

    Description

      I get the following error when trying to compile with Sun Java 1.5.0_20:

      src\main\java\org\apache\commons\jexl\util\introspection\MethodKey.java:[199,26] name clash: getMostSpecific
      (java.util.List<java.lang.reflect.Constructor<?>>) and getMostSpecific(java.util.List<java.lang.reflect.Method>) have the same erasure

      src\main\java\org\apache\commons\jexl\util\introspection\IntrospectorBase.java:[177,30] getMostSpecific(java
      .util.List<java.lang.reflect.Method>) in org.apache.commons.jexl.util.introspection.MethodKey cannot be applied to (java.util.List<java.lang.reflect.C
      onstructor<?>>)

      Compiles OK with Java 1.6.0_16 and Eclipse, but it ought to compile with Java 1.5.0 as well

      Attachments

        1. JEXL-88.patch
          2 kB
          Henri Biestro

        Activity

          People

            Unassigned Unassigned
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: