[Uml-devel] [Bug 130926] java import - static not handled correctly

JP Fournier jfournier121 at rogers.com
Sun Jul 16 17:42:05 UTC 2006


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=130926         




------- Additional Comments From jfournier121 rogers com  2006-07-16 19:42 -------
The patch below seems to fix this bug.

regards

jp

jape puma:~$ diff -c svn/kdesdk/umbrello/umbrello/javaimport.cpp kdesdk/umbrello/umbrello/javaimport.cpp
*** svn/kdesdk/umbrello/umbrello/javaimport.cpp 2006-07-16 09:27:38.000000000 -0400
--- kdesdk/umbrello/umbrello/javaimport.cpp     2006-07-16 13:09:15.000000000 -0400
***************
*** 358,367 ****
              }
              nextToken = advance();
          }
!         UMLObject *o = Import_Utils::insertAttribute(m_klass, m_currentAccess, name, typeName, m_comment);
          UMLAttribute *attr = static_cast<UMLAttribute*>(o);
!         if (nextToken != ",")
              break;
          name = advance();
          nextToken = advance();
      }
--- 358,370 ----
              }
              nextToken = advance();
          }
!         UMLObject *o = Import_Utils::insertAttribute(m_klass, m_currentAccess, name, typeName, m_comment, m_isStatic);
          UMLAttribute *attr = static_cast<UMLAttribute*>(o);
!         if (nextToken != ",") {
!             // reset the modifiers
!             m_isStatic=m_isAbstract=false;
              break;
+         }
          name = advance();
          nextToken = advance();
      }




More information about the umbrello-devel mailing list