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

AnnotationTypeMismatchException instead of MirroredTypeException

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: