Details
Description
The default configuration for the ant task javadoc-dev does not specify a maxmemory and, after churning for a while, fails with an OOM exception:
[javadoc] Constructing Javadoc information... [javadoc] Standard Doclet version 1.6.0_07 [javadoc] Building tree for all the packages and classes... [javadoc] java.lang.OutOfMemoryError: Java heap space [javadoc] at java.util.LinkedHashMap.createEntry(LinkedHashMap.java:424) [javadoc] at java.util.LinkedHashMap.addEntry(LinkedHashMap.java:406) [javadoc] at java.util.HashMap.put(HashMap.java:385) [javadoc] at sun.util.resources.OpenListResourceBundle.loadLookup(OpenListResourceBundle.java:118) [javadoc] at sun.util.resources.OpenListResourceBundle.loadLookupTablesIfNecessary(OpenListResourceBundle.java:97) [javadoc] at sun.util.resources.OpenListResourceBundle.handleGetObject(OpenListResourceBundle.java:58) [javadoc] at sun.util.resources.TimeZoneNamesBundle.handleGetObject(TimeZoneNamesBundle.java:59) [javadoc] at java.util.ResourceBundle.getObject(ResourceBundle.java:378) [javadoc] at java.util.ResourceBundle.getObject(ResourceBundle.java:381) [javadoc] at java.util.ResourceBundle.getStringArray(ResourceBundle.java:361) [javadoc] at sun.util.TimeZoneNameUtility.retrieveDisplayNames(TimeZoneNameUtility.java:100) [javadoc] at sun.util.TimeZoneNameUtility.retrieveDisplayNames(TimeZoneNameUtility.java:81) [javadoc] at java.util.TimeZone.getDisplayNames(TimeZone.java:399) [javadoc] at java.util.TimeZone.getDisplayName(TimeZone.java:350) [javadoc] at java.util.Date.toString(Date.java:1025) [javadoc] at com.sun.tools.doclets.formats.html.markup.HtmlDocWriter.today(HtmlDocWriter.java:337) [javadoc] at com.sun.tools.doclets.formats.html.HtmlDocletWriter.printHtmlHeader(HtmlDocletWriter.java:281) [javadoc] at com.sun.tools.doclets.formats.html.ClassWriterImpl.writeHeader(ClassWriterImpl.java:122) [javadoc] at com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.buildClassHeader(ClassBuilder.java:164) [javadoc] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [javadoc] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [javadoc] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [javadoc] at java.lang.reflect.Method.invoke(Method.java:597) [javadoc] at com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.invokeMethod(ClassBuilder.java:101) [javadoc] at com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder.build(AbstractBuilder.java:90) [javadoc] at com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.buildClassDoc(ClassBuilder.java:124) [javadoc] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [javadoc] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [javadoc] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [javadoc] at java.lang.reflect.Method.invoke(Method.java:597) [javadoc] at com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.invokeMethod(ClassBuilder.java:101) [javadoc] at com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder.build(AbstractBuilder.java:90)