unable to fetch properties / attributes via RTTI
Original Reporter info from Mantis: mr-highball
-
Reporter name: Highball
Original Reporter info from Mantis: mr-highball
- Reporter name: Highball
Description:
While attempting to use the RTTI unit to write auto json serialization with attributes, I ran into some cases where I was unable to get the property list or attribute list.
One case I've identified so far is that when a method takes an ancestor object as a parameter, the rtti unit cannot obtain the attributes or properties. Using the TypInfo unit methods, I'm able to at least get the property list, but not the attribute list.
I'm not sure if this is a bug, or if it's just how things are. If I find any additional cases I'll be sure to update the ticket as I'm still trying to find ways around this.
Steps to reproduce:
- open rtti_tester propject
- run program
- output will show tests (property count should be two for each test and attribute count should be one)
Additional information:
- testing code starts at line: 370 (below the "START HERE")
Mantis conversion info:
- Mantis ID: 36651
- Build: 62473
- Version: 3.3.1
- Monitored by: » mr-highball (Highball)