Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-5082929

Comparing Float and Integer

    XMLWordPrintable

Details

    • 5.0
    • 5.0
    • b03
    • generic
    • generic
    • Verified

    Description

      This is valid according to JLS3:

      class Test {
          void test(Float f, Integer i) {
      boolean b = f == i;
          }
      }

      The compiler does not accept it.

      ###@###.### 2004-08-04

      Attachments

        Activity

          People

            ahe Peter Ahe
            ahe Peter Ahe
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: