Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-2156

Problem compiling with java 7 (1.7_051)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 7.0.1
    • Databind
    • None
    • Java 1.7.0_51, OS name: "linux", version: "3.2.0-58-generic", arch: "amd64", family: "unix"

      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!

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

              Created:
              Updated: