powered by Jive Software

Bug in openfire build tool

If you will use the following piece of code while developing plugin for openfire (the most simple version I found):

public class MyClass {

** private enum myEnum {}**

** private void myMethod() {}**


you get the following error while executing plugin build task:

com.thoughtworks.qdox.parser.ParseException: syntax error …

though obviously there are no error in that code.

the error occures inside **buildplugin **macro when it runs **copy **task

I’d appreciate if someone could add this as an issue in Openfire JIRA,

because I haven’t found how to do it.

Would you please attach all the classes / code that you did create and use? This would help a lot to create a test case and make sure that it can be fixed properly.

Sure, here is the simplest example I found (2 files):


package com.myplugin;

import java.io.File;

import org.jivesoftware.openfire.container.Plugin;

import org.jivesoftware.openfire.container.PluginManager;

public class MyPlugin implements Plugin {

public void initializePlugin(PluginManager manager, File pluginDirectory) {}

public void destroyPlugin() {}

public static class MyClass {

private enum myEnum {}

// uncomment the following to make workaround

// ;

private void myMethod() {}





<?xml version="1.0" encoding="UTF-8"?>


My Plugin

Test plugin






ant target:

myplugin.rar.zip (835 Bytes)