[Uml-devel] [Bug 130792] New: importing java class (enum pattern) cause umbrello to hang
JP Fournier
jfournier121 at rogers.com
Fri Jul 14 00:37:50 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=130792
Summary: importing java class (enum pattern) cause umbrello to
hang
Product: umbrello
Version: unspecified
Platform: Slackware Packages
OS/Version: Linux
Status: UNCONFIRMED
Severity: crash
Priority: NOR
Component: general
AssignedTo: umbrello-devel.kde.org
ReportedBy: jfournier121 rogers com
Version: compiled snapshot - kdesdk-561582 - umbrello 1.5.4 (using KDE KDE 3.5.0)
Installed from: Slackware Packages
Compiler: gcc 3.4.4
OS: Linux
importing this class causes umbrello to prompt for seversl class names and then the gui hangs.
import java.io.*;
public final class Visibility implements Serializable {
public static final Visibility PUBLIC =
new Visibility("public", "public" );
public static final Visibility PROTECTED =
new Visibility("protected", "protected" );
public static final Visibility PRIVATE =
new Visibility("private", "private" );
public static final Visibility PACKAGE =
new Visibility ("", "package" );
private static Visibility[] all = {
PUBLIC, PROTECTED, PRIVATE, PACKAGE
};
private String value;
private String display;
private Visibility( String newValue, String newDisplay ) {
value = newValue;
display = newDisplay;
}
public String toString() {
return display;
}
public String getValue() {
return value;
}
public boolean isValidForClass() {
return ( this != PROTECTED );
}
public static Visibility[] getAllValues() {
return all;
}
public Visibility internalize() {
for (int index=0; index < all.length; index ++ )
if ( all[index].value.equals( this.value ) )
return all[index];
return PACKAGE;
}
// private void writeObject(java.io.ObjectOutputStream out)
// throws IOException {
//
// out.writeUTF( name );
// }
//
// private void readObject(java.io.ObjectInputStream in)
// throws IOException, ClassNotFoundException {
// name = in.readUTF();
// }
//
}
More information about the umbrello-devel
mailing list