Uploaded image for project: 'XMLBeans'
  1. XMLBeans
  2. XMLBEANS-186

javasource setting not being passed to compiler

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • Version 2
    • Version 2.1
    • Compiler
    • 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
        {

      Attachments

        Activity

          People

            Unassigned Unassigned
            zellster Adam Zell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: