[Uml-devel] kdesdk/umbrello/umbrello/codegenerators

Brian Thomas thomas at mail630.gsfc.nasa.gov
Tue Apr 13 17:38:13 UTC 2004


CVS commit by thomas: 

bug fix: in Java we cant write out non-public method (op) declarations


  M +9 -0      javacodeoperation.cpp   1.11


--- kdesdk/umbrello/umbrello/codegenerators/javacodeoperation.cpp  #1.10:1.11
@@ -88,4 +88,13 @@ void JavaCodeOperation::updateMethodDecl
         setStartMethodText(startText);
 
+        // In Java, for interfaces..we DONT write out non-public 
+        // method declarations.
+        if(isInterface)
+        {
+                UMLOperation * o = getParentOperation();
+                if(o->getScope() != Uml::Public)
+                        setWriteOutText(false);
+        }
+
 }
 






More information about the umbrello-devel mailing list