Login | Register
My pages Projects Community openCollabNet

Discussions > Notification of Issues > [Bug 14] New - ArgoUML hangs when using JDK1.2.2 from Sun

argouml
Discussion topic

Back to topic list

[Bug 14] New - ArgoUML hangs when using JDK1.2.2 from Sun

Author bugmaster at tigris dot org
Full name bugmaster at tigris dot org
Date 2000-02-03 03:48:20 PST
Message http://www.tigris.or​g/bugs/show_bug.cgi?​id=14

*** shadow/14 Thu Feb 3 03:48:20 2000
--- shadow/14.tmp.17580 Thu Feb 3 03:48:20 2000
***************
*** 0 ****
--- 1,45 ----
+ Bug#: 14
+ Product: argouml
+ Version: 0.7
+ Platform: PC
+ OS/Version: Linux
+ Status: NEW
+ Resolution:
+ Severity: normal
+ Priority: P2
+ Component: src
+ Area: BUILD
+ AssignedTo: bugs at argouml dot tigris dot org
+ ReportedBy: keeskuip at technologist dot com
+ URL:
+ Summary: ArgoUML hangs when using JDK1.2.2 from Sun
+
+ This is a bug which occurs through a bug of sun.
+
+ When you drag a Text-Element(FigText) on your class-diagram
+ ArgoUML hangs.
+
+ In FigText.getFontFamily() the font.getFamily() returns "dialog.plain".
+ In StylePanelFigText a combobox _fontField expects "dialog".
+ The stylePanelFigText.refresh() calls _fontField.setSelect​ed("dialog.plain");
+ This fires an ItemChanged() which in it turn eventually calls
+ stylePanelFigText.refresh() again and a deadly loop is created.
+
+ So in general we can say (?) that if an item is selected which
+ doesn't excist in the item-list then we can expect a forever-loop.
+
+ WorkAround :
+ In File uci/gef/FigText.java
+ Change the function getFontFamily() to :
+
+ public String getFontFamily()
+ {
+ StringTokenizer family = new StringTokenizer(_fon​t.getFamily(), ".");
+
+ if(family.hasMoreTokens())
+ return family.nextToken();
+
+ return _font.getFamily();
+ }
+
+ Kees.

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

[Bug 14] New - ArgoUML hangs when using JDK1.2.2 from Sun bugmaster at tigris dot org bugmaster at tigris dot org 2000-02-03 03:48:20 PST
Messages per page: