Problem compiling jain-sip-1.2
"Victor Hugo Ros Villegas" <[email protected]>
| Newsgroups | gmane.comp.voip.nist-sip |
|---|---|
| Message-ID | <[email protected]> |
Hello!
Using jdk 1.4 I have the next problem:
Compiling 300 source files to D:\workspace\jain-sip-1.2\classes
[javac] D:\workspace\jain-
sip-1.2\src\gov\nist\javax\sip\header\SIPHeaderList.java:523: warning: as of
release 1.4, assert is a keyword, and may not be used as an identifier
[javac] assert( siphdr != this );
[javac] ^
[javac] D:\workspace\jain-
sip-1.2\src\gov\nist\javax\sip\header\SIPHeaderList.java:523: cannot resolve
symbol
[javac] symbol : method assert (boolean)
[javac] location: class gov.nist.javax.sip.header.SIPHeaderList
[javac] assert( siphdr != this );
[javac] ^
[javac] 1 error
[javac] 1 warning
BUILD FAILED
To solve it I have done the following modifications:
Index: build.xml
===================================================================
RCS file: /home/nist-sip/cvs-nist-sip-1.2/repository/jain-sip-1.2
/build.xml,v
retrieving revision 1.16
diff -u -r1.16 build.xml
--- build.xml 17 Apr 2006 18:12:23 -0000 1.16
+++ build.xml 24 Apr 2006 16:21:39 -0000
@@ -222,8 +222,9 @@
<jar destfile="${jain_api_jar}" basedir="${classes}"
includes="javax/sip/**/*.class"/>
</target>
- <target name="compileri" depends="clean,init">
+ <target name="compileri" depends="init">
<javac debug="${javac.debug}" debuglevel="${javac.debuglevel}"
+ source="1.4"
nowarn="${javac.nowarn}"
deprecation="${javac.deprecation}"
optimize="${javac.optimize}"
Regards,
Victor
_______________________________________________
nist-sip mailing list
[email protected]
http://www-x.antd.nist.gov/mailman/listinfo/nist-sip