Page 1 of 1

JFreeReportDesigner fails with JFreeReport 0.8.4_9

Posted: Tue Apr 20, 2004 4:05 pm
by helmut
Hi,

private void loadConfiguration()
{
try
{
final ConfigStorage storage = ConfigFactory.getInstance().getUserStorage();
if (storage.existsProperties("designer-settings"))
{
final Properties props = storage.loadProperties("designer-settings", null);
this.editorConfiguration.putAll(props);
}
}
catch (ConfigStoreException ce)
{
Log.debug("Unable to load default configuration.");
}
}

fails together with JfreeReport 0.8.4_9 because it does not accept hyphens in the name.

/**
* Checks, whether the given string denotes a valid config storage path.
* Such an path must not contain whitespaces or non-alphanumeric characters.
*
* @param path the path that should be tested.
* @return true, if the path is valid, false otherwise.
*/
public static boolean isValidPath(final String path)
{
final char[] data = path.toCharArray();
for (int i = 0; i < data.length; i++)
{
if (Character.isJavaIdentifierPart(data) == false)
{
return false;
}
}
return true;
}

Posted: Tue Apr 20, 2004 8:03 pm
by Taqua
Hi,

thanks for the report - it is fixed now and the CVS version uses now the latest released JFreeReport version. I also commited an fix for a crash in the Element-Stylesheet-editor.

I'm currently uploading a packaged version to sourceforge, so that we have something downloadable there.

Have mo' fun,
said Thomas