Boo
  1. Boo
  2. BOO-442

static constructor related bugs (3 for 1 sale!)

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.5.6
    • Fix Version/s: 0.6
    • Component/s: Runtime (Boo.Lang)
    • Labels:
      None
    • Number of attachments :
      0

      Description

      several tiny bugs not worth their own issue.

      class wtf:
      def constructor():
      print self
      class wtfpwned:
      static def constructor():
      print self
      class wildcherry:
      static def constructor():
      print self
      static zak = 10
      class hammertime:
      static def constructor():
      print self
      def constructor():
      print 'kittens are cyuite!'
      wtf() #the standard control case, works perfectly
      wtfpwned() #this constructor calls some kind of infinite loop and results in a stack overflow.
      wildcherry() #this one creates a target invocation exception, even though i can assert self is not null

      there's also a situation where printing self in a static constructor with some other kind of member being present will result in something crazy like "System.Text.TextWriter", but I lost the test-case when I got a stack-overflow that killed boo explorer. I can't track it down again, but I know its out there, waiting. lurking.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Rodrigo B. de Oliveira
            Reporter:
            Arron Washington
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: