[Uml-devel] [Bug 131006] java import - random import order can result in interface being teated as class

JP Fournier jfournier121 at rogers.com
Tue Jul 18 00:59:42 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=131006         




------- Additional Comments From jfournier121 rogers com  2006-07-18 02:59 -------
The patch below seems to fix this bug:

diff -c svn/kdesdk/umbrello/umbrello/codeimport/javaimport.cpp kdesdk/umbrello/umbrello/codeimport/javaimport.cpp
*** svn/kdesdk/umbrello/umbrello/codeimport/javaimport.cpp      2006-07-17 20:35:57.000000000 -0400
--- kdesdk/umbrello/umbrello/codeimport/javaimport.cpp  2006-07-17 20:55:51.000000000 -0400
***************
*** 156,161 ****
--- 156,164 ----
          m_klass->setAbstract(m_isAbstract);
          m_klass->setStatic(m_isStatic);
          m_klass->setVisibility(m_currentAccess);
+         // the UMLObject found by createUMLObject might originally have been created as a placeholder
+         // with a type of class but if is really an interface, then we need to change it
+         m_klass->setInterface( keyword == "interface" );
          m_isAbstract = m_isStatic = false;
          if (advance() == ";")   // forward declaration
              return true;




More information about the umbrello-devel mailing list