You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by koteswara Rao Gundapaneni <ko...@gmail.com> on 2023/10/05 09:32:39 UTC
build failure for 10.1.x
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<T>
[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
class name
========
DrawboardEndpoint:
private final MessageHandler.Whole<String> stringHandler =
new MessageHandler.Whole<>() {
Re: build failure for 10.1.x
Posted by Michael Osipov <mi...@apache.org>.
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: build failure for 10.1.x
Posted by Mark Thomas <ma...@apache.org>.
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 <ma...@apache.org> 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<T>
>>> [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-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: dev-help@tomcat.apache.org
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: build failure for 10.1.x
Posted by koteswara Rao Gundapaneni <ko...@gmail.com>.
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 <ma...@apache.org> 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<T>
> > [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-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>
Re: build failure for 10.1.x
Posted by Mark Thomas <ma...@apache.org>.
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<T>
> [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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org