https://issues.apache.org/bugzilla/show_bug.cgi?id=56797

--- Comment #1 from Christopher Schultz <ch...@christopherschultz.net> ---
That's because the method is ambiguous. Even Java can't figure it out.

Something is wrong with your sample code: it won't compile.

public class AmbiguousTest
{
    public static class TesterBeanA {
        public CharSequence getCharSequence(CharSequence cs) {
          return cs;
        }
    }

    public static class TesterBeanAA {

        @Override
        public String getCharSequence(CharSequence cs) {
            return cs.toString();
        }
    }
    public static void main(String[] args) {
        new TesterBeanAA().getCharSequence("test");
    }
}

The code above will not compile under Java 8:
$ javac AmbiguousTest.java 
AmbiguousTest.java:11: error: method does not override or implement a method
from a supertype
        @Override
        ^
1 error

You may have to come up with a better test case.

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

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

Reply via email to