<?xml version="1.0" encoding="UTF-8"?>
<!--
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements. See the NOTICE file distributed with
    this work for additional information regarding copyright ownership.
    The ASF licenses this file to You under the Apache License, Version 2.0
    (the "License"); you may not use this file except in compliance with
    the License. You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
-->

<document>

  <properties>
    <title>Project Roadmap</title>
    <author email="dev@harmony.apache.org">Harmony Documentation Team</author>
  </properties>

  <body>
    <section name="Roadmap and TODO">

      <p>
        Our roadmap and goals are always subject to discussion on the
        <a href="mailing.html">developer's list.</a> As new people join with new focuses and
        interests, the things we do as a project adapt.
      </p>

      <p>
        If you have an idea, come and join the community and talk about it. </p>
        <p class="note">Note</p>
        <p class="notetext">You need to subscribe to the <a href="mailing.html">mailing list</a> first.</p>

    </section>

    <section name="High-Level Roadmap">

      <p>
        Our project goal is an open source, compatible implementation of Java SE. 
        It's a major task being done by a community of volunteers. Thus, the following
        is an approximate roadmap for what the project hopes to achieve in the next year.
        ASF and Harmony keeps trying to secure TCK license from the Java SE JSR spec lead, 
        and once it's done we will add TCK certification target dates into the roadmap.
      </p>
      <ul>
        <li>
          <font color="green">
            <b>DONE</b>
          </font>
          <strike>Aug 2006: 85% of Java SE 5 class library coverage </strike>
        </li>
        <li>
          <font color="green">
            <b>DONE</b>
          </font>
          <strike>
            Aug 2006: regular distributions of pre-completion Harmony JDK
            and <a href="subcomponents/classlibrary/hdk.html">HDK</a>
            suitable for development and testing
          </strike>
        </li>
        <li>
          <font color="green">
            <b>DONE</b>
          </font>
          <strike>
            Sept 2006: 90% of
            \Java SE 5 class library coverage
          </strike>
        </li>
        <li>
          <font color="green">
            <b>DONE</b>
          </font>
          <strike>
            Oct 2006: 92% of Java SE 5 class library coverage
          </strike>
        </li>
        <li>
          <font color="green">
            <b>DONE</b>
          </font>
          <strike>
            Nov 2006: 95% of Java SE 5 class library coverage
          </strike>
        </li>
        <li>
          <font color="green">
            <b>DONE</b>
          </font>
          <strike>
            Dec 2006: 97% of Java SE 5 class library coverage
          </strike>
        </li>
        <li>
          Q1 2007: 100% Java SE 5 class library coverage
        </li>
        <li>
          <font color="green">
            <b>DONE</b>
          </font>
          <strike>
            Q1 2007: DRLVM is stable with reasonable performance
          </strike>
        </li>
        <li>
          <font color="green">
            <b>DONE</b>
          </font>
          <strike>
            Q1 2007: work begins on Java SE 6 features
          </strike>
        </li>
        <li>
          Feb 2007: Java SE 5 JDK toolset complete
        </li>
        <li>
          <font color="green">
            <b>DONE</b>
          </font>
          <strike>
          Q2 2007: Apache Harmony starts providing stable SE 5 JDK and JRE build for major platforms
          </strike>
        </li>
        <li>
          <font color="green">
            <b>DONE</b>
          </font>
          <strike>
          Q3 2007: Build and test infrastructure ensures code integrity and provides sufficient snapshot testing
          </strike>
        </li>
        <li>
          Q4 2007: Apache Harmony starts providing stable SE 6 JDK and JRE build for major platforms
        </li>
        <li>
          Q? 2008: Apache Harmony SE 7 JDK and JRE released.
          <p class="note">Note</p>
            <p class="notetext">The Java SE 7
          JSR has not yet been proposed by Sun. We assume 18
          months from start of JSR to completion. We hope to
          deliver Harmony's implementation of Java SE 7 at the
          same time Sun does.</p>
        </li>
      </ul>
    </section>

    <section name="TODO List">

      <p>
        The following is a collection of things that the project community
        has listed as needing to be done. This list is not exhaustive. If
        you wish to add an item to this list, or discuss or even volunteer
        to work on an item, please join us on the <a href="mailing.html">
          Harmony
          mail list.
        </a>
      </p>

      <p>
        The following sections describe the high-level areas of effort, and
        tasks that have been identified for those areas.
      </p>

      <ol>
        <li>
          <a href="#General">General</a>
        </li>
        <li>
          <a href="#Build Engineering">Build Engineering</a>
        </li>
        <li>
          <a href="#Build-Test Framework">Build-Test Framework</a>
        </li>
        <li>
          <a href="#Performance, Stability and Reliability">Performance, Stability and Reliability</a>
        </li>
        <li>
          <a href="#Class Library">Class Library</a>
        </li>
        <li>
          <a href="#DRLVM">DRLVM</a>
        </li>
        <li>
          <a href="#Porting Matrix">Porting Matrix</a>
        </li>
        <li>
          <a href="#Application-Driven Project Advancement">Application-Driven Project Advancement</a>
        </li>

      </ol>
      <subsection name="General">

        <h3>1. JDK tools</h3>

        <p>
          As part of the JDK that Harmony will distribute, we'll include
          the full set of tools that Java programmers expect to find in
          any JDK. For maximum portability, we plan to write all of the
          tools in Java, using the Harmony launcher as the portable native
          code that starts the VM and invokes the tool. Currently, we have
          the following completed:
        </p>
        <ul>
          <li>
            <code>appletviewer, jar, jarsigner, javac (via the Eclipse compiler), javah, javap, keytool, pack200, policytool, rmic, rmiregistry, rmid, serialver, unpack200</code>
        </li>
        </ul>
        
        <p>
          But we need the following:
        </p>
        <ul>
          <li>
            <code>javadoc, apt, extcheck, jdb (incomplete)</code>
        </li>
        <li>
            <code>kinit, klist, ktab, native2ascii</code>
        </li>
        <li>
            <code>tnameserv, idlj, orbd, servertool</code>
        </li>
        <li>
            <code>htmlconverter, javaws</code>
          </li>
        </ul>
        <p>
          Again, we have the portable launcher framework - we just need volunteers.
        </p>


        <h3>2. Modularity</h3>
        <p>
          From the beginning of our project, we've had a strong interest and focus
          on modularity. This dedication has paid off in our class library development,
          as we've been able to evaluate competing implementations of RMI and math, as
          well as allow developers to isolate development on one module.
        </p>

        <p>
          The modularity story for the class library is reasonable complete at this
          point, as we have completed the modularization of the native code as well.
          However, there is plenty of work to be done with our virtual machines - the
          goal being able to define a set of standard interfaces to which modular
          VM components can be written.
        </p>
      </subsection>

      <subsection name="Build Engineering">

        <p>
          Build engineering in Harmony is a complicated subject, as we are building
          on multiple platforms in multiple languages. So far, we have support for
          our Windows and Linux ports, but our porting plans indicate that we'll need
          to revisit given the different toolchains. There are many things to do
          in this area, many not listed.
        </p>

        <ul>
          <li>
            Switch to use system libraries, dynamically where appropriate
            - <code>libz, libpng, libjpeg, liblcms, libicu*,</code> etc.
          </li>
          <li>
          <font color="green">
            <b>DONE, 3/week</b>
          </font>
          <strike>          
            Create regular schedule for snapshots and automate.</strike>
            <ol>
              <li>HDK - libraries, jars, headers</li>
              <li>JDK - tools + JRE</li>
              <li>JRE = classlib + DRLVM</li>
            </ol>
          </li>
          <li>
          <font color="green">
            <b>DONE</b>
          </font>
          <strike>          
            Federated build - ability to builds a complete JDK from top level
            using choice of project VM
          </strike>
          </li>
          <li>
            Agreement between project parts (DRLVM, classlib) on things like
            debug/release flag, structure of artifacts (model after classlib for now) <i>(in progress)</i>
          </li>
          <li>
            Common dependency pool for all project parts to share <i>(in progress)</i>
          </li>
          <li>
          <font color="green">
            <b>DONE</b>
          </font>
            <strike>
            Switch DRLVM build to a class library-like ant + make configuration
            </strike>
          </li>
          <li>
          <font color="green">
            <b>DONE</b>
          </font>
          <strike>
            Remove assumption in class library build system that all that uses make is
            Linux.
            </strike>
          </li>
        </ul>
      </subsection>

      <subsection name="Build-Test Framework">
        <p>
          The goal of this part of the Harmony project, the build-test framework,
          is make it easy for anyone to setup the CI infrastructure for the
          project and submit automated reports on building and testing of the
          project codebase on that platform.
        </p>

        <p>
          There is an <a href="http://svn.apache.org/viewvc/harmony/enhanced/buildtest/">
           implementation</a> in place in SVN and it is continuously being
          improved. The implementation was installed and is running on a number of
          different <a href="http://wiki.apache.org/harmony/Automated_Testing">platforms</a>.
          E-mail alerts are sent to a specially created
          <a href="http://mail-archives.apache.org/mod_mbox/harmony-alerts">mailing list</a>.

          But much more work is needed. Ideas include:
        </p>
        <ul>
          <li>
          <font color="green">
            <b>DONE</b>
          </font>
          <strike>
            Create live "status dashboard" with a summary of results from all tested platforms,
            as well as history for each tested platform.
          </strike>
               <ul>
               <li><a href="http://people.apache.org/~mloenko/snapshot_testing/script/snapshots_summary.html">Snapshot testing history</a></li>
               <li><a href="http://people.apache.org/~varlax/harmony-integrity/">Integrity testing status</a></li>
               </ul>
          </li>
          <li>
          <font color="green">
            <b>DONE</b>
          </font>
          <strike>
            Integrate with <a href="http://www.kaffe.org/~stuart/japi/">JAPI</a>
          </strike>
          </li>
          <li>
            Integrate with <a href="http://sources.redhat.com/mauve/">Mauve</a> for further
            class library testing. (<i>in progress</i>)
          </li>
          <li>
            Integrate with test-coverage tool (for example, <a href="http://emma.sourceforge.net/">emma</a>
            for auto-generated reports). (<i>in progress</i>)
          </li>
          <li>
            Externalize local properties into a 'test.properties' file for easy of localization.
          </li>
        </ul>

      </subsection>

      <subsection name="Performance, Stability and Reliability">

        <p>
          Our goal is a high-performance, stable and compatible implementation of Java SE 5.
          While passing the TCK is a measure of compatibility with the standard,
          performance and stability is something that must be achieved independently.
          We are looking to:
        </p>

        <ol>
          <li>
            Define a set of stress, stability and performance tests that are
            freely available and easy to automate in our
            <a href="#Build-Test Framework">build-test framework.</a>
          </li>
          <li>
            Measure and monitor baseline performance using these tests
            with our standard builds across our supported platform matrix.
          </li>
          <li>
            Identify and fix stability and performance problems.
          </li>
        </ol>
      </subsection>

      <subsection name="Class Library">

        <p>
          The  class library is an important (and large!) part of the Java SE
          platform. While we have made significant progress so far (>99% of Java 5 at last
          check), there are many, many interesting things remaining to be done.
        </p>
        <p>
          The work on Java 6 features is <a href="http://wiki.apache.org/harmony/ClasslibJava6">underway</a>
          in a dedicated branch.
        </p>
        <ul>
          <li>
            <a href="subcomponents/classlibrary/status.html">General package completion</a>
          </li>
          <li>
            <code>java.util.concurrency</code>: integration of Doug Lea's RI package. Goal is to
            use unmodified code from the 166 expert group and implent whatever
            support is needed by the VM and rest of class library. (<i>in progress</i>)
          </li>
          <li>
            CORBA: re-use the Apache Yoko project (currently in incubator)
            as the required implementation of CORBA and related support
            classes (<i>in progress</i>)
          </li>
          <li>
            JMX: currently we have the standard MX4J jars integrated, but
            looking to see what kind of collaboration or unification we can
            achieve with the MX4J project. (<i>in progress</i>)
          </li>
          <li>
            RTF parser for Swing
          </li>
          <li>
            Java text renderer for buffered images and headless mode
          </li>
          <li>
            MultiRectArea optimization
          </li>
          <li>
            WebStart and browser plug-in implementation
          </li>
          <li>
            Test coverage - we need to greatly increase our unit tests (functional,
            spec, implementation)
          </li>
        </ul>
      </subsection>

      <subsection name="DRLVM">
        <p>
          VM is a critical part of the Java SE platform. As usual, there are many, many interesting
          things remaining to be done.</p>
        <ul>
          <li>
            <a
            href="http://wiki.apache.org/harmony/DRLVM_Development_Tasks">DRLVM Development Tasks</a>
          </li>
          <li>
            <a href="http://wiki.apache.org/harmony/JIT_Development_Tasks">JIT Development Tasks</a>
          </li>
          <li>
            <a href="http://wiki.apache.org/harmony/KnownNonBugIssuesAndLimitations">Known non bug issues and limitations</a>
            This is a list of problems known to exist in drlvm which may or may not manifest themself in tests.
          </li>
          <li>
            <a href="http://wiki.apache.org/harmony/Documentation_TODO">Documentation TODO</a>
          </li>
        </ul>
      </subsection>
      <subsection name="Porting Matrix">
        <p>
          Another motivation of the Harmony project is to provide a
          portable implementation that is available on many
          platforms and operating systems. See <a href="supported_platforms.html">
          Supported Platforms</a> for a list of operating systems 
          and architectures that HDK runs on.
        </p>
      </subsection>
      <subsection name="Application-Driven Project Advancement">
        <p>
          As we now have a fairly usable class library and virtual machine, we wish to
          make it easy for the broad Java user community to help us ensure that
          the Harmony class library supports the classes necessary for the most popular
          and used applications out there. While we will complete the class library,
          tools like this will help us do it in a way that prioritizes the most useful
          first, enabling even more users to test our software and participate in
          the project. So far, there have been a few tools donated, but no concerted
          effort to package for ease of use.
        </p>

        <ul>
          <li>
            <a href="http://issues.apache.org/jira/browse/HARMONY-165">Harmony-165</a>
            - tool to compare an applications required classes
            with what is available in Harmony
          </li>
          <li>
            <a href="http://issues.apache.org/jira/browse/HARMONY-565">
              Harmony-565</a> - another tool for reporting class coverage for applications
          </li>
        </ul>
      </subsection>

    </section>

  </body>
</document>
