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

potential bug with annotations and class file evolution

XMLWordPrintable

    • b81
    • sparc
    • solaris_8

        currently any annotations for a method defined in a class are stored in the array that hangs off the instanceKlass. This works fine normally since these parallel arrays are one to one. However if class evolution allows the replacement of a methodOop then we have to handle this correctly. There can only be one annotation but there are potentially 2 methodOops live. I suspect this isn't that likely to show up in practice but I think someone who understands the interaction of this needs to think about what needs to be done. It may be suffient to simply update the annotation when you update the method table. I talked somewhat with Ken about this and promised to file a bug.

              dcubed Daniel Daugherty
              never Tom Rodriguez
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: