You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2015/06/01 16:41:35 UTC

[Bug 57982] New: build.xml assumes Javadoc 7+ is used but does not check this

https://bz.apache.org/bugzilla/show_bug.cgi?id=57982

            Bug ID: 57982
           Summary: build.xml assumes Javadoc 7+ is used but does not
                    check this
           Product: Tomcat 9
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: sebb@apache.org

The build file in Tomcat 6 forces the use of Java 7 for running javadoc.

The build.xml file for Tomcat 9 (and 8) assumes that javadoc 7+ will be used
(and so, like TC6, does not apply any fix for CVE-2013-1571).

However the build file does not check that a suitable version of javadoc is
being used.

Although it is not possible to compile these versions of Tomcat using Java 6,
it is possible to use Java 6 to create the javadoc.

This is a slightly unlikely scenario, but it might still be worth adding a java
version check.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 57982] build.xml assumes Javadoc 7+ is used but does not check this

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57982

--- Comment #2 from Sebb <se...@apache.org> ---
Possible solution: add the following to any tasks that run javadoc:


    <available property="jdk1.7+" classname="java.lang.AutoCloseable"/> 
    <fail unless="jdk1.7+"
          message="Must use Java 7 or later for creating the Javadocs"/>

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 57982] build.xml assumes Javadoc 7+ is used but does not check this

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57982

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |WONTFIX
             Status|NEW                         |RESOLVED

--- Comment #3 from Mark Thomas <ma...@apache.org> ---
The minimum Java version is documented. If folks want to jump through the hoops
they'd have to jump through to do this (and do so using a non-supported version
of Java) then they should be prepared to deal with the consequences.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 57982] build.xml assumes Javadoc 7+ is used but does not check this

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57982

--- Comment #1 from Sebb <se...@apache.org> ---
(In reply to Sebb from comment #0)
> The build file in Tomcat 6 forces the use of Java 7 for running javadoc.

s/6/7/

> The build.xml file for Tomcat 9 (and 8) assumes that javadoc 7+ will be used
> (and so, like TC6, does not apply any fix for CVE-2013-1571).

s/TC6/TC7/

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org