You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by br...@apache.org on 2003/02/06 17:43:14 UTC
cvs commit: db-ojb/src/test/org/apache/ojb/odmg OneToOneTest.java
brj 2003/02/06 08:43:14
Modified: src/test/org/apache/ojb/odmg OneToOneTest.java
Log:
fixed #ifdef
Revision Changes Path
1.11 +6 -0 db-ojb/src/test/org/apache/ojb/odmg/OneToOneTest.java
Index: OneToOneTest.java
===================================================================
RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/odmg/OneToOneTest.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- OneToOneTest.java 5 Feb 2003 20:04:40 -0000 1.10
+++ OneToOneTest.java 6 Feb 2003 16:43:14 -0000 1.11
@@ -2,6 +2,12 @@
//#ifdef JDK13
import java.lang.reflect.Proxy;
+//#else
+/*
+import com.develop.java.lang.reflect.Proxy;
+*/
+//#endif
+
import java.util.List;
import junit.framework.TestCase;
Re: cvs commit: db-ojb/src/test/org/apache/ojb/odmg OneToOneTest.java
Posted by David Warnock <da...@sundayta.com>.
brj@apache.org wrote:
> brj 2003/02/06 08:43:14
>
> Modified: src/test/org/apache/ojb/odmg OneToOneTest.java
> Log:
> fixed #ifdef
Snip
> //#ifdef JDK13
> import java.lang.reflect.Proxy;
> +//#else
> +/*
> +import com.develop.java.lang.reflect.Proxy;
> +*/
> +//#endif
> +
> import java.util.List;
Unfortunately there is one small problem. On JDK 1.4 the preprocessor
fails. The fix is to have no trailing spaces on any of the lines from
//#ifdef through to //#endif.
So if you remove these all is OK and with that change and the others I
have 0 junit errors.
The lines with trailing spaces are
//#else
/*
import com.develop.java.lang.reflect.Proxy;
*/
With these in you get output an extra /* which confuses the compiler.
Dave
--
David Warnock, Sundayta Ltd. http://www.sundayta.com
iDocSys for Document Management. VisibleResults for Fundraising.
Development and Hosting of Web Applications and Sites.