javasource setting not being passed to compiler
-----------------------------------------------

         Key: XMLBEANS-186
         URL: http://issues.apache.org/jira/browse/XMLBEANS-186
     Project: XMLBeans
        Type: Bug
  Components: Compiler  
    Versions: Version 2    
 Environment: Windows XP
Sun JDK 1.5_04
XMLBeans 2.0.0
    Reporter: Adam Zell


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
                 {


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to