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

    Details

    • Type: Bug
    • Status: Open
    • Priority: P5
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: other-libs
    • Labels:
      None
    • Subcomponent:
    • Introduced In Version:
      9

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated: