Ticket #77 (closed defect: fixed)

Opened 9 months ago

Last modified 9 months ago

Annotation cache is not unique

Reported by: schst Assigned to: mikey
Priority: major Milestone: 0.3.0
Component: ReflectionApi Version: SVN-trunk
Keywords: Cc:

Description

The annotation cache currently is based on the name of the class. If you have to classes with the same name in the same project, but located in different files, they will share the same annotation cache.

This should be fixed by generating a hash based on class name and file name.

Change History

08/14/07 22:49:00 changed by mikey

  • status changed from new to assigned.

I am not sure that it is worth the effort. It would mean that we have to change all reflection classes that deliver annotations and probably the annotation factory as well. Particularly getting annotations for a class property will be a lot more overhead because the reflection instance of the declaring class has to be created again inside the property reflection class to access the filename.

08/14/07 23:20:03 changed by mikey

  • status changed from assigned to closed.
  • resolution set to fixed.

Fixed with changeset 834.