Re: build failure for 10.1.x

2023-10-05 Thread Michael Osipov
On 2023/10/05 12:19:43 Mark Thomas wrote:
> On 05/10/2023 12:10, koteswara Rao Gundapaneni wrote:
> > Here is my Tomcat environment details
> > 
> > java version "1.8.0_202"
> > Apache Ant(TM) version 1.10.13
> > Windows 10 Pro
> > apache-tomcat-10.1.12-src
> 
> Tomcat 10.1.x requires a minimum of Java 11 to build.

Time for Bug 67538...

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



Re: build failure for 10.1.x

2023-10-05 Thread Mark Thomas

On 05/10/2023 12:10, koteswara Rao Gundapaneni wrote:

Here is my Tomcat environment details

java version "1.8.0_202"
Apache Ant(TM) version 1.10.13
Windows 10 Pro
apache-tomcat-10.1.12-src


Tomcat 10.1.x requires a minimum of Java 11 to build.

Mark






On Thu, Oct 5, 2023 at 3:10 AM Mark Thomas  wrote:


On 05/10/2023 10:32, koteswara Rao Gundapaneni wrote:

I am getting the build failure for the tomcat 10.1.x, as I dig in I find
the below is the root cause

[javac]


E:\apache-tomcat-10.1.12-src\apache-tomcat-10.1.12-src\webapps\examples\WEB-INF\classes\websocket\drawboard\DrawboardEndpoint.java:168:

error: cannot infer type arguments for Whole
  [javac] new MessageHandler.Whole<>() {
  [javac] ^
  [javac]   reason: cannot use '<>' with anonymous inner classes
  [javac]   where T is a type-variable:
  [javac] T extends Object declared in interface Whole
  [javac] 1 error


Please help how to overcome this error


How are you building Tomcat to get this error.

A clean build of 10.1.x works for me.
- Ant 1.10.13
- Java 11.0.20 (Temurin)

Mark

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






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



Re: build failure for 10.1.x

2023-10-05 Thread koteswara Rao Gundapaneni
Here is my Tomcat environment details

java version "1.8.0_202"
Apache Ant(TM) version 1.10.13
Windows 10 Pro
apache-tomcat-10.1.12-src



On Thu, Oct 5, 2023 at 3:10 AM Mark Thomas  wrote:

> On 05/10/2023 10:32, koteswara Rao Gundapaneni wrote:
> > I am getting the build failure for the tomcat 10.1.x, as I dig in I find
> > the below is the root cause
> >
> > [javac]
> >
> E:\apache-tomcat-10.1.12-src\apache-tomcat-10.1.12-src\webapps\examples\WEB-INF\classes\websocket\drawboard\DrawboardEndpoint.java:168:
> > error: cannot infer type arguments for Whole
> >  [javac] new MessageHandler.Whole<>() {
> >  [javac] ^
> >  [javac]   reason: cannot use '<>' with anonymous inner classes
> >  [javac]   where T is a type-variable:
> >  [javac] T extends Object declared in interface Whole
> >  [javac] 1 error
> >
> >
> > Please help how to overcome this error
>
> How are you building Tomcat to get this error.
>
> A clean build of 10.1.x works for me.
> - Ant 1.10.13
> - Java 11.0.20 (Temurin)
>
> Mark
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: dev-h...@tomcat.apache.org
>
>


Re: build failure for 10.1.x

2023-10-05 Thread Mark Thomas

On 05/10/2023 10:32, koteswara Rao Gundapaneni wrote:

I am getting the build failure for the tomcat 10.1.x, as I dig in I find
the below is the root cause

[javac]
E:\apache-tomcat-10.1.12-src\apache-tomcat-10.1.12-src\webapps\examples\WEB-INF\classes\websocket\drawboard\DrawboardEndpoint.java:168:
error: cannot infer type arguments for Whole
 [javac] new MessageHandler.Whole<>() {
 [javac] ^
 [javac]   reason: cannot use '<>' with anonymous inner classes
 [javac]   where T is a type-variable:
 [javac] T extends Object declared in interface Whole
 [javac] 1 error


Please help how to overcome this error


How are you building Tomcat to get this error.

A clean build of 10.1.x works for me.
- Ant 1.10.13
- Java 11.0.20 (Temurin)

Mark

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