Community
Participate
Working Groups
This code DOMFactory df = new DOMFactory(); IDOMType t = df.createType("class A implements I1 {\n}"); df.addSuperInterface("I2"); System.out.println(t.getContents()); lacks a space as it prints class A implements I1, I2{ } instead of "I1, I2 {".
This is due to a bug in the DOMBuilder for settings the source end for interfaces names. Fixed and released in HEAD. Regression tests added.
Note that if you write: DOMFactory df = new DOMFactory(); IDOMType t = df.createType("class A implements I1{\n}"); df.addSuperInterface("I2"); System.out.println(t.getContents()); Then you will get: class A implements I1, I2{ } The right behavior is to preserve the original space between interface names and the beginning of the class body.