incubator-odf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Svante Schubert (Commented) (JIRA)" <>
Subject [jira] [Commented] (ODFTOOLKIT-299) Build with JDK 7 as well as Earlier versions
Date Thu, 05 Apr 2012 21:44:24 GMT


Svante Schubert commented on ODFTOOLKIT-299:

I encountered an additional problem with OdfStyleFamily. It returned an error with JDK7 when
adding null due to the JDK7 change described below.
But the problem could be easily avoided by not adding each OdfStyleProperty in a loop, but
in total using Arrays, even enhancing performance.
Area: API: Utilities
Synopsis: Due to an error in java.util.TreeMap, it was previously possible to insert invalid
null elements and elements not implementing Comparable into empty TreeMaps and TreeSets. Only
a single invalid element could be inserted into the empty TreeMaps or TreeSets; additional
elements would cause the expected NullPointerException or ClassCastException. Most other operations
upon the collection would also fail. As of JDK 7, inserting an invalid null element or an
element not implementing Comparable into an empty TreeMap or TreeSet throws a NullPointerException.
RFE: 5045147

Changed OdfStyleFamily and as the source is generated the template as well.
> Build with JDK 7 as well as Earlier versions
> --------------------------------------------
>                 Key: ODFTOOLKIT-299
>                 URL:
>             Project: ODF Toolkit
>          Issue Type: Improvement
>          Components: taglets
>    Affects Versions: 0.8.8
>            Reporter: Dennis E. Hamilton
>            Assignee: Svante Schubert
>            Priority: Minor
>              Labels: patch
> The Maven POM for Taglets finds tools.jar in the JDK only if the java.vendor is Sun Microsystems.
> The java.vendor for JDK 7 is Oracle Corporation.
> The POM can be modified to build properly in either case by splitting the tools.jar profile
into two, one for each java.vendor case.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message