https://issues.apache.org/bugzilla/show_bug.cgi?id=56047
Bug ID: 56047
Summary: Javadoc.postProcessGeneratedJavadocs() fails for
Classes that extend Javadoc
Product: Ant
Version: 1.9.3
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: Core tasks
Assignee: [email protected]
Reporter: [email protected]
This line fails when using a class that extends Javadoc because getClass()
returns the class of the object instantiated.
+ final InputStream in = getClass()
+ .getResourceAsStream("javadoc-frame-injections-fix.txt");
This can be resolved by changing getClass() to Javadoc.class, or by using a
qualified resource name, rather than using the "relative to Class" behavior.
Of course, if the extended class is in the same package as Javadoc it will
work, but that is not a sensible thing to do.
Thanks, Mike
PS - We'll probably work around it by adding the txt file to the package in the
jar that contains our Javadoc extension task.
--
You are receiving this mail because:
You are the assignee for the bug.