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

Comparing Float and Integer

    XMLWordPrintable

    Details

    • Subcomponent:
    • Introduced In Build:
      5.0
    • Introduced In Version:
      5.0
    • Resolved In Build:
      b03
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      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

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

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: