Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-6614

ObjectInputStream's primitive mapping table misses void/void.class

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • JDK
    • None

    Description

      looking at ObjectInputStream.java,

      static

      { PRIMITIVE_CLASSES.put("byte", byte.class); //$NON-NLS-1$ PRIMITIVE_CLASSES.put("short", short.class); //$NON-NLS-1$ PRIMITIVE_CLASSES.put("int", int.class); //$NON-NLS-1$ PRIMITIVE_CLASSES.put("long", long.class); //$NON-NLS-1$ PRIMITIVE_CLASSES.put("boolean", boolean.class); //$NON-NLS-1$ PRIMITIVE_CLASSES.put("char", char.class); //$NON-NLS-1$ PRIMITIVE_CLASSES.put("float", float.class); //$NON-NLS-1$ PRIMITIVE_CLASSES.put("double", double.class); //$NON-NLS-1$ }

      I am wondering why there is no "void", void.class key-value pair?

      http://markmail.org/message/ahzzkhz63x5otksq

      Attachments

        Activity

          People

            hindessm Mark Hindess
            matzew Matthias Wessendorf
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: