autoboxing from literals

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P3
    • 5.0
    • Affects Version/s: 5.0
    • Component/s: 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;
                                  ^

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: