JDK-8054199 : addition of generics to sun.tools.* required one method to retain usage of rawtypes and @SuppressWarnings annotation
  • Type: Bug
  • Component: other-libs
  • Sub-Component: other
  • Priority: P5
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2014-08-02
  • Updated: 2017-10-31
Related Reports
Relates :  
Description
The class/method ./javac/BatchEnvironment.java:makeMemberDefinition() is left without generics since adding them breaks the operation of the .sun.tools compiler.  This is the only place where lint warnings are suppressed
with the annotation:

@SuppressWarnings({"rawtypes","unchecked"})

There is no super-class for BatchEnvironment and MemberDefinition and it is believed that an conflict was
allowed in the pre-generics age.

JBS-8044867 was checked in with this single suppressed-warnings member after having
built JDK9 and its stubs, showing no failures for jtreg ./jdk/test/java/rmi tests, and passing
Corba's test suite [ 4546/4546 Pass : Mark Sheppard ].

It was agreed that further investigation would be of value to determine if anything can be done to
fix the inconsistancy uncovered.  It may be that the effort is not warranted and closing the bug
with Won't Fix is a possibility.