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

autoboxing from literals

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 5.0
    • 5.0
    • tools
    • b40
    • generic
    • solaris_8

      It would help if auto-boxing assignments of Byte/Short from literal integer worked without a cast.

      test/ConsumerFeederTest.java:77: incompatible types
      found : int
      required: java.lang.Short
              final Short value = 42;
                                  ^

            gafter Neal Gafter (Inactive)
            gafter Neal Gafter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: