Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-536

Omitting the ending '}' in a type statement causes a StackOverflowError

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    • 4538

    Description

      To reproduce: in the mdsal project, go to mdsal/model/ietf/ietf-restconf and do mvn clean. Open src/main/yang/ietf-restconf@2013-10-19.yang. On line 114, remove the ending '}:

      typedef revision-identifier {
      type string {
      pattern '\d

      {4}

      -\d

      {2}-\d{2}

      ';
      } <--- line 114

      description ...
      }

      In your terminal window, set the scrollback size to like 5000 (1000 lines wasn't enough for me). Run mvn. If your window has enough scrollback you should see the StackOverflowError.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            tpantelis Tom Pantelis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: