Lint warning when a method returns a naked type variable not present in the parameters

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 10
    • Component/s: tools
    • None

      Javac should emit a lint warning when a method declares a naked type variable as return type that isn't present in the formal parameters.

      Alternatively, a specific callsite might be warned if a method declaring a naked type variable as return type is invoked with 'null' as actual argument for all parameters referring to this type variable.

            Assignee:
            Bernard Blaser
            Reporter:
            Bernard Blaser
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: