Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-403

Compilation error with javac in scaffold faces

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.0.0.Beta4
    • None
    • Scaffold
    • None
    • Hide

      I resolved this change int type to Integer. With this change, javac can compile because metawidget.getClientProperty(UnsearchableWidgetProcessor.class), use a Integer generic, and there aren't problem with generics and basic types.

      Show
      I resolved this change int type to Integer. With this change, javac can compile because metawidget.getClientProperty(UnsearchableWidgetProcessor.class), use a Integer generic, and there aren't problem with generics and basic types.

      There are a compilation error with javac of Oracle JDK 1.6.0_29, but it's correct with eclipse java compiler. There are problems with generics.

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.1:compile (default-compile) on project forge-scaffold-faces: Compilation failure
      [ERROR] /proyectos/lab/java/forge/core/scaffold-faces/src/main/java/org/jboss/forge/scaffold/faces/metawidget/widgetprocessor/UnsearchableWidgetProcessor.java:[62,57] type parameters of <T>T cannot be determined; no unique maximal instance exists for type variable T with upper bounds int,java.lang.Object

      http://stackoverflow.com/questions/314572/bug-in-eclipse-compiler-or-in-javac

              pablo.palazon Pablo Palazon (Inactive)
              pablo.palazon Pablo Palazon (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: