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

rmic should support a -target option

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 1.4.2
    • core-libs
    • None
    • generic
    • generic

      Perhaps rmic should support a general -target option similar to javac's in order to allow the user to specify that the generated classes can assume a particular Java platform.

      Currently, rmic generates classes that only assume JDK 1.1 or, if the -v1.2 option is used, J2SE 1.2. (The -v1.1, -vcompat, and -v1.2 options slightly affect the target platform assumption, but they are more focused on the JRMP stub/skeleton protocol version that the generated code should use.)

      A general -target option would allow rmic to generate class files of more recent class file versions, like 48.0 or 49.0, for whatever that's worth.

      As far as the source code generated by rmic, a "-target 1.5" option would allow rmic to generate code that uses the static factory methods of the java.lang primitive wrapper classes, instead of always constructing new instances, for boxing primitive values (to pass to RemoteRef.invoke). The resulting code would be more efficient (in space and time). [See 5096178 for a separate RFE for addressing this issue for booleans without the need for a -target option.]

            Unassigned Unassigned
            peterjones Peter Jones (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: