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

Multiple upper bounds of the TypeVariable

XMLWordPrintable

    • b119
    • generic
    • generic
    • Verified

      From: Jan Lahoda <###@###.###>

      I have a question regarding
      javax.lang.model.type.TypeVariable.getUpperBound(): it says that if
      there are multiple upper bounds specified, the result is DeclaredType
      which Types.directSupertypes are the specified bounds. But, is there is
      way to detect if the returned DeclaredType is such a compound type (so
      that I should call directSupertypes to find out the correct bounds)?
      I think we need a Types.isCompound method.

            jlahoda Jan Lahoda
            ahe Peter Ahe
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: