Hi, Jochen
> A small example of an "unparseable" or "wrongly parseable" class would
help too.
/*
* Created on Aug 12, 2005
*/
package de.ahring.test;
import java.io.File;
import org.apache.ws.jaxme.js.JavaField;
import org.apache.ws.jaxme.js.JavaQName;
import org.apache.ws.jaxme.js.JavaQNameImpl;
import org.apache.ws.jaxme.js.JavaSource;
import org.apache.ws.jaxme.js.JavaSourceFactory;
import org.apache.ws.jaxme.js.util.JavaParser;
/**
* @author FAhring
*/
public class FieldArrayFailTest {
private String s1;
private String[] s2;
private String s3[];
private String[] s4[];
public static void main(String[] args) throws Exception {
// adjust to point to this class itself
File file = new
File("C:\\workspaces\\generator\\SS_Generator\\JavaSource\\de\\ahring\\test\\FieldArrayFailTest.java");
JavaSourceFactory jsf = new JavaSourceFactory();
JavaQName name =
JavaQNameImpl.getInstance(FieldArrayFailTest.class);
JavaParser jp = new JavaParser(jsf);
jp.parse(file);
JavaSource js = jsf.getJavaSource(name);
// list fields
JavaField[] f = js.getFields();
System.out.println(f.length + " Fields found:");
for (int i = 0; i < f.length; i++) {
JavaField a = f[i];
System.out.println(a.getProtection() + " " + a.getType() + " "
+ a.getName() + ";");
}
}
}
this produces the output:
4 Fields found:
private String s1;
private String s2;
private String[] s3;
private String[] s4;
I forgot to mention that I don't use the newest version, but the one from
April. The topmost change line in status.xml reads <release version=
"0.4beta" date="2005-Apr-17">. However, I can't remember seeing changes to
the Javasourceparser-part of JaxMe in the last couple of months on the
list. But please do test how your version handles this.
:Frederic:
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]