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

compiler doesn't box/unbox on assignment conversions

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 5.0
    • 5.0
    • tools
    • b24
    • generic
    • solaris_8

      The JSR14 protptype (2.0) has some problems in the implementation of
      boxing and unboxing:

      (1) boxing/unboxing as an assignment conversion was not properly handled.

      (2) boxing/unboxing as a cast conversion was not properly handled.

      (3) unboxing should not go to the "desired" target type, but rather to
      the appropriate unboxed type based on the type of the box.

      (4) primitive conversions before boxing should just work:
      Double d = 2;

            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: