Menu

#1 DesignParser.java

open
nobody
None
5
2012-09-18
2011-10-26
No

On Module parsing, on cfg statement:
Parser only get first module CFG statement. It's due to the variables currNet, currModule, etc. They are not correctly reset in some point.

To solve I change the "if else" order in ATTRIBUTE case of the parser: First the Module and next the Net

case ATTRIBUTE:

   [...]
   }else{
                Attribute attribute = createAttribute(token);
            if (currInstance != null)
                currInstance.addAttribute(attribute);
            else if (currModule != null)
                currModule.addAttribute(attribute);
            else if (currNet != null) {
                currNet.addAttribute(attribute);

Discussion

  • Brad

    Brad - 2011-10-31

    Eduardo-
    My name is Brad and I'll be handling this bug report. Would you mind attaching your XDL file to this bug report so that we may reproduce the error? Thanks.

    -Brad

     
  • Eduardo Lezcano

    Eduardo Lezcano - 2011-11-02

    This file contains 3 diferent modules. All of them has at leas one cfg attribute.

     
  • Eduardo Lezcano

    Eduardo Lezcano - 2011-11-02

    File uploaded. Hope it helps you.

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB