Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
Version 2
-
None
-
Windows XP
Sun JDK 1.5_04
XMLBeans 2.0.0
Description
Patch below should fix the problem where Ant's javasource setting is never passed to the compiler, and as a result generics compilation fails.
Looks like a simple typo ("source" used instead of "javasource"):
— src/xmlcomp/org/apache/xmlbeans/impl/tool/XMLBean.java.orig 2005-08-05 00:25:34.390625000 -0700
+++ src/xmlcomp/org/apache/xmlbeans/impl/tool/XMLBean.java 2005-08-05 00:26:33.437500000 -0700
@@ -252,10 +252,10 @@
javac.setExecutable(forkedExecutable);
javac.setFailonerror(failonerror);
javac.setFork(fork);
- if (source != null)
+ if (javasource != null) { - javac.setSource(source); - javac.setTarget(source); + javac.setSource(javasource); + javac.setTarget(javasource); }else
{