JDK-7152007 : Fix warnings in sun/rmi/rmic
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.rmi
  • Affected Version: 8
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2012-03-07
  • Updated: 2013-09-16
  • Resolved: 2012-03-27
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
7u40Fixed 8 b32Fixed
The warning fixes in sun/rmi/rmic introduced by 7146763 were undone in 7151348, since these changes were breaking the build when SKIP_BOOT_CYCLE is set to false. This CR is an attempt to re-introduce these changes with corrections to avoid breaking the build.

EVALUATION Changeset: 337d4570b8d6 Author: khazra Date: 2012-03-16 11:52 -0700 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/337d4570b8d6 7152007: Fix warnings in sun/rmi/rmic Summary: Minor code changes to remove warnings in sun/rmi/rmic Reviewed-by: chegar, smarks ! src/share/classes/sun/rmi/rmic/BatchEnvironment.java ! src/share/classes/sun/rmi/rmic/Main.java ! src/share/classes/sun/rmi/rmic/RMIGenerator.java ! src/share/classes/sun/rmi/rmic/newrmic/Main.java ! src/share/classes/sun/rmi/rmic/newrmic/Resources.java

SUGGESTED FIX Restore the changes that had been reverted by http://hg.openjdk.java.net/jdk8/tl/jdk/rev/ce6b852bf4e2 but make this change instead: - environmentClass = envClass; + environmentClass = envClass.asSubclass(BatchEnvironment.class);