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

AnnotationValue.getValue() returns String "<error>" not a TypeMirror as expected

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P3 P3
    • None
    • 6
    • tools
    • apt
    • x86
    • windows_2000

      J2SE Version (please include all output from java -version flag):
        java version "1.5.0_03"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07)
        Java HotSpot(TM) Client VM (build 1.5.0_03-b07, mixed mode, sharing)
        and
        java version "1.6.0-ea"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-ea-b38)
        Java HotSpot(TM) Client VM (build 1.6.0-ea-b38, mixed mode)


      Does this problem occur on J2SE 1.3.x or 1.4.x? Yes / No (pick one)
        N/A

      Operating System Configuration Information (be specific):
        Win 2K

      Bug Description:
        apt, Class<?> annotation value not matching required bounds,
        AnnotationValue.getValue() returns String "<error>" not a
        TypeMirror as expected.

      Steps to Reproduce (be specific):

        In same directory as attached source files

         javac -cp "%JAVA_HOME%\lib\tools.jar" SomeProcessor.java Programatic.java
         java -cp .;"%JAVA_HOME%\lib\tools.jar" Programatic

      See the note at Src2Process.java:3
       












      ###@###.### 2005-05-31 15:55:34 GMT

            sseligmasunw Scott Seligman (Inactive)
            tyao Ting-Yun Ingrid Yao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: