When I try to build Castor using "build.sh all", I see lots of deprecated API and 
assert warnings.  Also, what version of Xerces does Castor use?  Is it included in the 
source or do you have to install it separately?

Thanks,
Robert



   [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -deprecation for details.
     [copy] Copying 25 files to /Users/developer/Source/Tools/castor/build/classes

examples:
    [mkdir] Created dir: /Users/developer/Source/Tools/castor/build/examples
    [javac] Compiling 16 source files to 
/Users/developer/Source/Tools/castor/build/examples
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -deprecation for details.
     [copy] Copying 24 files to /Users/developer/Source/Tools/castor/build/examples
    [mkdir] Created dir: /Users/developer/Source/Tools/castor/build/examples/webapp
     [copy] Copying 1008 files to 
/Users/developer/Source/Tools/castor/build/examples/webapp/WEB-INF/classes
     [copy] Copying 12 files to 
/Users/developer/Source/Tools/castor/build/examples/webapp/WEB-INF/lib
      [jar] Building jar: 
/Users/developer/Source/Tools/castor/build/examples/webapp-example-castor.war

tests:
    [mkdir] Created dir: /Users/developer/Source/Tools/castor/build/tests
    [javac] Compiling 189 source files to 
/Users/developer/Source/Tools/castor/build/tests
    [javac] /Users/developer/Source/Tools/castor/src/tests/jdo/Absolute.java:149: 
warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
    [javac]         assert("should have been able to move to 1", enum.absolute(1));
    [javac]         ^
    [javac] /Users/developer/Source/Tools/castor/src/tests/jdo/Absolute.java:150: 
warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
    [javac]         assert("should have been able to move to 5",enum.absolute(5));
    [javac]         ^
    [javac] /Users/developer/Source/Tools/castor/src/tests/jdo/Absolute.java:151: 
warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
    [javac]         assert("should have been able to move to 10",enum.absolute(10));
    [javac]         ^
    [javac] /Users/developer/Source/Tools/castor/src/tests/jdo/Absolute.java:152: 
warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
    [javac]         assert("should have been able to move to 15",enum.absolute(15));
    [javac]         ^
    [javac] /Users/developer/Source/Tools/castor/src/tests/jdo/Absolute.java:153: 
warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
    [javac]         assert("should have been able to move to 20",enum.absolute(20));
    [javac]         ^
    [javac] /Users/developer/Source/Tools/castor/src/tests/jdo/Absolute.java:154: 
warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
    [javac]         assert("should have been able to move to 25",enum.absolute(25));
    [javac]         ^
    [javac] /Users/developer/Source/Tools/castor/src/tests/jdo/Absolute.java:189: 
warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
    [javac]         assert("shouldn't be able to move to -50", enum.absolute(-50) == 
false);
    [javac]         ^
    [javac] /Users/developer/Source/Tools/castor/src/tests/jdo/Absolute.java:190: 
warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
    [javac]         assert("shouldn't be able to move to 99999",enum.absolute(99999) 
== false);
    [javac]         ^
    [javac] /Users/developer/Source/Tools/castor/src/tests/jdo/Absolute.java:208: 
warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
    [javac]             assert("Shouldn't reach here, calling absolute on a 
non-scrollable resultset should fail",false);
    [javac]             ^
    [javac] /Users/developer/Source/Tools/castor/src/tests/jdo/Absolute.java:210: 
warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
    [javac]             assert(true);
    [javac]             ^
    [javac] /Users/developer/Source/Tools/castor/src/tests/jdo/CacheLeakage.java:216: 
warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
    [javac]         assert( "Element leak not detected!", !_errLeak );
    [javac]         ^
    [javac] /Users/developer/Source/Tools/castor/src/tests/jdo/CacheLeakage.java:217: 
warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
    [javac]         assert( "Race condition not happened!", !_errCount );
    [javac]         ^
    [javac] /Users/developer/Source/Tools/castor/src/tests/jdo/LazyLoading.java:870: 
warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
    [javac]         assert( "The projects collection is not valid!.", projects != null 
&& projects.size() > 0 );
    [javac]         ^
    [javac] /Users/developer/Source/Tools/castor/src/tests/jdo/LazyLoading.java:873: 
warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
    [javac]         assert( "Collection has to be lazy! It is " + 
loadPerson.getProjects().getClass(), 
    [javac]         ^
    [javac] /Users/developer/Source/Tools/castor/src/tests/jdo/LazyLoading.java:881: 
warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
    [javac]         assert( "Collection has to be lazy! It is " + 
loadPerson.getProjects().getClass(), 
    [javac]         ^
    [javac] /Users/developer/Source/Tools/castor/src/tests/jdo/Race.java:260: warning: 
as of release 1.4, assert is a keyword, and may not be used as an identifier
    [javac]         assert("Value in database does not match the expected value", num 
== jdos.length );
    [javac]         ^
    [javac] /Users/developer/Source/Tools/castor/src/tests/jdo/Race.java:261: warning: 
as of release 1.4, assert is a keyword, and may not be used as an identifier
    [javac]         assert("Leak detected", !_leak );
    [javac]         ^
    [javac] /Users/developer/Source/Tools/castor/src/tests/jdo/Size.java:148: warning: 
as of release 1.4, assert is a keyword, and may not be used as an identifier
    [javac]         assert("size should be > 0",enum.size() > 0);
    [javac]         ^
    [javac] /Users/developer/Source/Tools/castor/src/tests/jdo/Size.java:166: warning: 
as of release 1.4, assert is a keyword, and may not be used as an identifier
    [javac]             assert("size should be > 0", enum.size() > 0);
    [javac]             ^
    [javac] /Users/developer/Source/Tools/castor/src/tests/jdo/Size.java:167: warning: 
as of release 1.4, assert is a keyword, and may not be used as an identifier
    [javac]             assert("size should be ==25", enum.size() == 25);
    [javac]             ^
    [javac] /Users/developer/Source/Tools/castor/src/tests/jdo/Size.java:189: warning: 
as of release 1.4, assert is a keyword, and may not be used as an identifier
    [javac]         assert("realsize didn't equal expectedsize", 
realSize==expectedSize);
    [javac]         ^
    [javac] /Users/developer/Source/Tools/castor/src/tests/jdo/Size.java:207: warning: 
as of release 1.4, assert is a keyword, and may not be used as an identifier
    [javac]             assert("Calling size() on a non-scrollable ResultSet should 
fail (unless using PostgreSQL).",false);
    [javac]             ^
    [javac] /Users/developer/Source/Tools/castor/src/tests/jdo/Size.java:211: warning: 
as of release 1.4, assert is a keyword, and may not be used as an identifier
    [javac]             assert(true);
    [javac]             ^
    [javac] 
/Users/developer/Source/Tools/castor/src/tests/main/org/exolab/castor/tests/framework/MarshallingFrameworkTestCase.java:147:
 warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
    [javac]         assert("The input file specified:"+_inputName+" cannot be found.", 
_input != null);
    [javac]         ^
    [javac] 
/Users/developer/Source/Tools/castor/src/tests/main/org/exolab/castor/tests/framework/MarshallingFrameworkTestCase.java:190:
 warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
    [javac]                                assert(_failure.getContent() == true);
    [javac]                                ^
    [javac] 
/Users/developer/Source/Tools/castor/src/tests/main/org/exolab/castor/tests/framework/MarshallingFrameworkTestCase.java:200:
 warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
    [javac]                         assert(_failure.getContent() == true);
    [javac]                         ^
    [javac] 
/Users/developer/Source/Tools/castor/src/tests/main/org/exolab/castor/tests/framework/SchemaTestCase.java:159:
 warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
    [javac]                 assert(result != 0);
    [javac]                 ^
    [javac] 
/Users/developer/Source/Tools/castor/src/tests/main/org/exolab/castor/tests/framework/SchemaTestCase.java:161:
 warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
    [javac]                  assert(result == 0);
    [javac]                  ^
    [javac] 
/Users/developer/Source/Tools/castor/src/tests/main/org/exolab/castor/tests/framework/SchemaTestCase.java:162:
 warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
    [javac]                  assert("-->The test case should have failed.",((_failure 
== null) || (_failure.getContent() == false)));
    [javac]                  ^
    [javac] 
/Users/developer/Source/Tools/castor/src/tests/main/org/exolab/castor/tests/framework/SchemaTestCase.java:193:
 warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
    [javac]                             assert(_failure.getContent() == true);
    [javac]                             ^
    [javac] 
/Users/developer/Source/Tools/castor/src/tests/main/org/exolab/castor/tests/framework/SchemaTestCase.java:203:
 warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
    [javac]                     assert(_failure.getContent() == true);
    [javac]                     ^
    [javac] 
/Users/developer/Source/Tools/castor/src/tests/main/org/exolab/castor/tests/framework/SchemaTestCase.java:244:
 warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
    [javac]                            assert(_failure.getContent() == true);
    [javac]                            ^
    [javac] 
/Users/developer/Source/Tools/castor/src/tests/main/org/exolab/castor/tests/framework/SchemaTestCase.java:256:
 warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
    [javac]                     assert(_failure.getContent() == true);
    [javac]                     ^
    [javac] 
/Users/developer/Source/Tools/castor/src/tests/main/org/exolab/castor/tests/framework/XMLTestCase.java:350:
 warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
    [javac]             assert("The initial randomized object and the one resulting of 
the marshal/unmarshal process are different", result);
    [javac]             ^
    [javac] 
/Users/developer/Source/Tools/castor/src/tests/main/org/exolab/castor/tests/framework/XMLTestCase.java:351:
 warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
    [javac]             assert("-->The test case should have failed.",((_failure == 
null) || (_failure.getContent() == false)));
    [javac]             ^
    [javac] 
/Users/developer/Source/Tools/castor/src/tests/main/org/exolab/castor/tests/framework/XMLTestCase.java:363:
 warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
    [javac]                            assert(_failure.getContent() == true);
    [javac]                            ^
    [javac] 
/Users/developer/Source/Tools/castor/src/tests/main/org/exolab/castor/tests/framework/XMLTestCase.java:375:
 warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
    [javac]                     assert(_failure.getContent() == true);
    [javac]                     ^
    [javac] 
/Users/developer/Source/Tools/castor/src/tests/main/org/exolab/castor/tests/framework/XMLTestCase.java:447:
 warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
    [javac]                     assert("The unmarshalled object differs from the 
hardcoded object.", result);
    [javac]                     ^
    [javac] 
/Users/developer/Source/Tools/castor/src/tests/main/org/exolab/castor/tests/framework/XMLTestCase.java:448:
 warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
    [javac]                     assert("-->The test case should have 
failed.",((_failure == null) || (_failure.getContent() == false)));
    [javac]                     ^
    [javac] 
/Users/developer/Source/Tools/castor/src/tests/main/org/exolab/castor/tests/framework/XMLTestCase.java:473:
 warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
    [javac]                     assert(result != 0);
    [javac]                     ^
    [javac] 
/Users/developer/Source/Tools/castor/src/tests/main/org/exolab/castor/tests/framework/XMLTestCase.java:475:
 warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
    [javac]                     assert("The Marshalled object differ from the gold 
file", result==0);
    [javac]                     ^
    [javac] 
/Users/developer/Source/Tools/castor/src/tests/main/org/exolab/castor/tests/framework/XMLTestCase.java:476:
 warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
    [javac]                     assert("-->The test case should have 
failed.",((_failure == null) || (_failure.getContent() == false)));
    [javac]                     ^
    [javac] 
/Users/developer/Source/Tools/castor/src/tests/main/org/exolab/castor/tests/framework/XMLTestCase.java:500:
 warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
    [javac]                     assert(result != 0);
    [javac]                     ^
    [javac] 
/Users/developer/Source/Tools/castor/src/tests/main/org/exolab/castor/tests/framework/XMLTestCase.java:502:
 warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
    [javac]                     assert("The Marshalled object differ from the gold 
file", result==0);
    [javac]                     ^
    [javac] 
/Users/developer/Source/Tools/castor/src/tests/main/org/exolab/castor/tests/framework/XMLTestCase.java:503:
 warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
    [javac]                     assert("-->The test case should have 
failed.",((_failure == null) || (_failure.getContent() == false)));
    [javac]                     ^
    [javac] 
/Users/developer/Source/Tools/castor/src/tests/main/org/exolab/castor/tests/framework/XMLTestCase.java:512:
 warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
    [javac]             assert("-->The test case should have failed.",((_failure == 
null) || (_failure.getContent() == false)));
    [javac]             ^
    [javac] 
/Users/developer/Source/Tools/castor/src/tests/main/org/exolab/castor/tests/framework/XMLTestCase.java:520:
 warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
    [javac]                 assert("The unmarshalled object differs from the hardcoded 
object.", result);
    [javac]                 ^
    [javac] 
/Users/developer/Source/Tools/castor/src/tests/main/org/exolab/castor/tests/framework/XMLTestCase.java:534:
 warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
    [javac]                            assert(_failure.getContent() == true);
    [javac]                            ^
    [javac] 
/Users/developer/Source/Tools/castor/src/tests/main/org/exolab/castor/tests/framework/XMLTestCase.java:546:
 warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
    [javac]                     assert(_failure.getContent() == true);
    [javac]                     ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -deprecation for details.
    [javac] 49 warnings
     [copy] Copying 16 files to /Users/developer/Source/Tools/castor/build/tests

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to