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

AnnotationTypeMismatchException instead of MirroredTypeException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • 6u10, 7u25
    • tools
    • None
    • b105
    • generic
    • generic
    • Verified

      I am working on API that generates so called "model" classes based on @Model annotation. I'd like to demo this project at JavaOne, but I have a problem: current javac hicks up and throws AnnotationTypeMismatchException instead of expected MirroredTypeException.

      I have a workaround that uses trees API, but I think it would be better if, at JavaOne time, my project worked without hacks with the latest available JDK at the JavaOne time.

      That is why I am proposing a patch to javac for your consideration.

        1. annotate-unresolvable-class.diff
          5 kB
          Jaroslav Tulach
        2. mirrored-type.patch
          6 kB
          Joel Borggrén-Franck
        3. mirrored-type3.patch
          9 kB
          Joel Borggrén-Franck

            jfranck Joel Borggrén-Franck (Inactive)
            jtulach Jaroslav Tulach (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: