Ticket #1455 (closed cage: fixed)

Opened 12 years ago

Last modified 11 years ago

Exception 'birthtime' attribute not accessible

Reported by: Austin_Hastings Owned by:
Priority: normal Milestone:
Component: none Version: 2.0.0
Severity: medium Keywords:
Cc: Language:
Patch status: Platform:


The Exception PMC type declares a 'birthtime' attribute, but makes little use of it. In fact, it appears to be a write-only attribute, since the set_number VTABLE is used to set the birthtime, but nothing appears to access it.

It's not clear to me what value the birth time of an Exception has - I see the birthtime attribute used in task and timer types, as well. If there *is* some value to the birthtime attribute, please make it accessible. If it should be an attribute, as it currently reports itself (via the .attributes mechanism) then please make it accessible via getattribute.

Alternatively, either let's nuke it (since it can't be read) or let's figure out what purpose it serves and add some functionality to do that.

Change History

Changed 12 years ago by Austin_Hastings

And while I'm at it, here's the complete list of so-called 'attributes' that the UN claims to be supporting, but which are really just a front for terrorists. Or something:

*** Bad attribute: birthtime (from parrot::Exception): No such attribute 'birthtime' *** Bad attribute: handler_ctx (from parrot::Exception): No such attribute 'handler_ctx' *** Bad attribute: id (from parrot::Exception): No such attribute 'id' *** Bad attribute: proxy (from parrot::Exception): No such attribute 'proxy' *** Bad attribute: thrower (from parrot::Exception): No such attribute 'thrower'

Changed 12 years ago by NotFound

I've done some simplification of gettter and setters of Exception, and allowed to get birthtime via get_attr_str in r46995 Also changed reports of "No such attribute" to be less confusing when the attr exists.

Changed 11 years ago by whiteknight

  • status changed from new to closed
  • resolution set to fixed

this is fixed in master. I'm closing this ticket.

Note: See TracTickets for help on using tickets.