jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • groovy
  • GROOVY-2279

StackOverflowException in MarkupBuilder when inserting element named 'link'

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Cannot Reproduce
  • Affects Version/s: None
  • Fix Version/s: 1.1-rc-3
  • Component/s: None
  • Labels:
    None

Description

This code fails with StackOverflow:

def builder = new groovy.xml.MarkupBuilder(stringWriter)
def rss = builder.rss(version:'2.0'){
channel{
title 'Titel'
description 'DESCR'
link 'MyURL' //or 'link' 'MyURL'
}
}

If i rename link to somewhat else, it works.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Guillaume Laforge added a comment - 12/Nov/07 2:54 AM

I can't reproduce this issue, as it works well here with 1.1-RC-2.
I think you may have some function or class somewhere called link which gets in the way and trigger this error.
In case my diagnostic is wrong, please re-open the issue.

Show
Guillaume Laforge added a comment - 12/Nov/07 2:54 AM I can't reproduce this issue, as it works well here with 1.1-RC-2. I think you may have some function or class somewhere called link which gets in the way and trigger this error. In case my diagnostic is wrong, please re-open the issue.
Hide
Permalink
Marcin Floryan added a comment - 17/Dec/10 10:37 AM

Just run into the same issue - interestingly, a UNIT test for the controller action works correctly but when the XML is rendered in the browser, the <link>... disappears.

Show
Marcin Floryan added a comment - 17/Dec/10 10:37 AM Just run into the same issue - interestingly, a UNIT test for the controller action works correctly but when the XML is rendered in the browser, the <link>... disappears.
Hide
Permalink
Paul King added a comment - 17/Dec/10 5:02 PM

Marcin, is it possible to cut and paste the raw xml (or rendered html) as a comment here - within code tags.

Show
Paul King added a comment - 17/Dec/10 5:02 PM Marcin, is it possible to cut and paste the raw xml (or rendered html) as a comment here - within code tags.

People

  • Assignee:
    Guillaume Laforge
    Reporter:
    Thorsten Beise
Vote (0)
Watch (0)

Dates

  • Created:
    07/Nov/07 11:56 AM
    Updated:
    17/Dec/10 5:02 PM
    Resolved:
    12/Nov/07 2:54 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.