ClassCastException: com.sun.tools.javac.code.Attribute$UnresolvedClass cannot be cast to com.sun.tools.javac.code.Attribute$Class

XMLWordPrintable

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: P4
    • None
    • Affects Version/s: 7, 8
    • Component/s: tools
    • None

      I tried to create another API with annotation and a processor that deals with not yet generated classes. But this time with an array - I am getting ClassCastException however.

      To reproduce, just take the test in http://hg.openjdk.java.net/jdk8/tl/langtools/rev/e811fb09a1dc and change the annotations to use arrays of Class<?>:

          @interface A {
              Class<?>[] a();
          }
          @interface B {
              Class<?>[] a();
          }
          @interface C {
              Class<?>[] a();
          }

      A ClassCastException is thrown rather than javax.lang.model.type.MirroredTypesException

            Assignee:
            Unassigned
            Reporter:
            Jaroslav Tulach (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: