Uploaded image for project: 'Jandex'
  1. Jandex
  2. JANDEX-35

Failure to resolve method type variable when using class-level bounded wildcard generics

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.0.2.Final
    • 2.0.0.Beta4
    • None
    • Hide

      Produce a class file with similar structure:

      class Foo extends Bar<T extends Baz> {
      void doThings(T arg) { }
      }

      The index created for such file could contain description containing java.lang.Object as a method argument instead of Baz since type variable remains unresolved during indexing.

      Show
      Produce a class file with similar structure: class Foo extends Bar<T extends Baz> { void doThings(T arg) { } } The index created for such file could contain description containing java.lang.Object as a method argument instead of Baz since type variable remains unresolved during indexing.

      When indexing class file data, the signatures along with its targets are processed in an order they arrived from an input stream, which might lead to method-level signatures being processed before class-level, thus leading to unresolved type variables and incorrect resulting indexes. No exceptions raised.

              jgreene@redhat.com Jason Greene
              fedor.gavrilov Fedor Gavrilov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: