Problem compiling with java 7 (1.7_051)

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Normal
    • None
    • Affects Version/s: 7.0.1
    • Component/s: Databind
    • None
    • Environment:

      Java 1.7.0_51, OS name: "linux", version: "3.2.0-58-generic", arch: "amd64", family: "unix"

    • None

      Hello i'm testing 7.0.1.FL.20140205, and i'm unable to compile a class that overrides BindComposer, the offending method is:

      @Override
      public void doBeforeComposeChildren(Window comp) throws Exception

      Where T is Window

      Problem:
      error: name clash: doBeforeComposeChildren(Window) in KLearningDesktop overrides a method whose erasure is the same as another method, yet neither overrides the other

      BindComposer is defined:

      public void doBeforeComposeChildren(Component comp) throws Exception

      I think that it needs to be:
      public void doBeforeComposeChildren(T comp) throws Exception

      Like the:
      public void doAfterCompose(T comp) throws Exception

      Which i can override without a problem

      This it's very weird problem, eclipse kepler compiles just fine and so does java 1.7.0_04

      But the last one java, 1.7.0_51 does not!

            Assignee:
            Unassigned
            Reporter:
            msrednsi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: