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

regression test test/sun/rmi/rmic/newrmic/equivalence fails with 1.5.0-beta-b32c

XMLWordPrintable

    • b39
    • generic, x86
    • generic, solaris_8
    • Verified

      The regression test

      test/sun/rmi/rmic/newrmic/equivalence

      fails with 1.5.0-beta-b32c, but not 1.5.0-beta-b35. The failure is caused by the fix for 4981566, which is present in b32c (for Tiger beta1) but not b35 (the fix for 4981566 hasn't made it into a beta2 promoted build yet).

      The "-Xnew" implementation of rmic invokes javac with the command line option "-target 1.1", in order to generate version 45.3 class files, but no -source option. In Tiger, the default -source option is "-source 1.4". Prior to the 4981566 fix, javac would emit a warning when "-target 1.1" was used with an (explicit or implicit) "-source 1.4" option:

      javac: source release 1.4 requires target release 1.4

      but it would still generate class files of the selected target version anyway. With the 4981566 fix, javac no longer generates class files when this warning is emitted, and it causes "rmic -Xnew" to terminate with a non-zero exit status (and no compiled stub/skeleton classes, although perhaps stub/skeleton source files, if the "-keep[generated]" option was used).

      javac does not support "-source 1.1" as an option, but it does appear to still support "-source 1.2" and "-source 1.3", and it appears that it still supports "-target 1.1" when either of those -source options are used. Therefore, changing the "rmic -Xnew" implementation to use "-source 1.2" or "-source 1.3" with its javac invocations should fix this bug.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: