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

addition of generics to sun.tools.* required one method to retain usage of rawtypes and @SuppressWarnings annotation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P5 P5
    • None
    • None
    • other-libs
    • None
    • 9

      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.

            Unassigned Unassigned
            ntoda Neil Toda (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: