You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xmlbeans-dev@xml.apache.org by Ias <ia...@tmax.co.kr> on 2004/04/19 10:50:26 UTC
Report on test failure of JAM
I got the following result with Tiger beta2 b46.
D:\apache\xml\xmlbeans-v2\jam>ant test
Buildfile: build.xml
test:
compile:
[mkdir] Created dir: D:\apache\xml\xmlbeans-
v2\build\jam\test\dummyclasses
[javac] Compiling 24 source files to D:\apache\xml\xmlbeans-
v2\build\jam\test\dummyclasses
[javac] Note: D:\apache\xml\xmlbeans-
v2\jam\test\dummyclasses\org\apache\xmlbeans\test\jam\dummyclasses\jsr175\RF
EAnnotationImpl.java uses uncheck
ed or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] Compiling 9 source files to D:\apache\xml\xmlbeans-
v2\build\jam\test
[javac] D:\apache\xml\xmlbeans-
v2\jam\test\tests\org\apache\xmlbeans\test\jam\JamTestBase.java:832: cannot
find symbol
[javac] symbol : variable fFeatures
[javac] location: class
org.apache.xmlbeans.test.jam.JamTestBase.FixedXMLSerializer
[javac] if (fFeatures == null) return false;
[javac] ^
[javac] D:\apache\xml\xmlbeans-
v2\jam\test\tests\org\apache\xmlbeans\test\jam\JamTestBase.java:833: cannot
find symbol
[javac] symbol : variable fFeatures
[javac] location: class
org.apache.xmlbeans.test.jam.JamTestBase.FixedXMLSerializer
[javac] Boolean b = (Boolean)fFeatures.get(feature);
[javac] ^
[javac] 2 errors
BUILD FAILED
D:\apache\xml\xmlbeans-v2\jam\build.xml:76: Following error occured while
executing this line
D:\apache\xml\xmlbeans-v2\jam\test\build.xml:56: Compile failed; see the
compiler error output for details.
I guess
//THIS IS A HACK to fix Sun's stupid bug for them
private class FixedXMLSerializer extends XMLSerializer {
public FixedXMLSerializer( Writer writer, OutputFormat format ) {
super(writer,format);
}
protected boolean getFeature(String feature){
if (fFeatures == null) return false;
Boolean b = (Boolean)fFeatures.get(feature);
if (b == null) return false;
return b.booleanValue();
}
}
in JamTestBase is the key of the problem, and maybe Sun fixed the stupid
bug themselves. :-)
Thanks,
Ias
=========================================================
Lee, Changshin (Korean name)
Ias (International name)
Company Web Site: http://www.tmax.co.kr
Personal Web Site: http://www.iasandcb.pe.kr
---------------------------------------------------------
JSR 201, 204, 222 and 224 Expert Group Member
Apache Web Services Project Member
R&D Center
Tmax Soft, Inc.
=========================================================
- ---------------------------------------------------------------------
To unsubscribe, e-mail: xmlbeans-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-dev-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/