Uploaded image for project: 'IronJacamar'
  1. IronJacamar
  2. JBJCA-1381

it's not possible to build ironjacamar with JDK11

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • Build
    • None
    • Hide

      ant nexus

      Show
      ant nexus

      There are more issues when trying to build IJ with JDK11. I'm not sure if it will be requirement for WildFly to build with JDK11 but it is requirement for runtime.

      These are issues I'm aware of
      1.

          [javac] error: java.lang.NoClassDefFoundError: javax/annotation/Generated
          [javac]     at org.jboss.logging.processor.generator.model.ClassModel.generateModel(ClassModel.java:122)
          [javac]     at org.jboss.logging.processor.generator.model.ImplementationClassModel.generateModel(ImplementationClassModel.java:81)
          [javac]     at org.jboss.logging.processor.generator.model.MessageLoggerImplementor.generateModel(MessageLoggerImplementor.java:92)
          [javac]     at org.jboss.logging.processor.generator.model.ClassModel.create(ClassModel.java:104)
          [javac]     at org.jboss.logging.processor.apt.ImplementationClassGenerator.processTypeElement(ImplementationClassGenerator.java:63)
          [javac]     at org.jboss.logging.processor.apt.LoggingToolsProcessor.process(LoggingToolsProcessor.java:145)
          [javac]     at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:972)
          [javac]     at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:888)
          [javac]     at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1214)
          [javac]     at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1326)
          [javac]     at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1258)
          [javac]     at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:936)
          [javac]     at jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:311)
          [javac]     at jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:170)
          [javac]     at jdk.compiler/com.sun.tools.javac.Main.compile(Main.java:57)
          [javac]     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          [javac]     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          [javac]     at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          [javac]     at java.base/java.lang.reflect.Method.invoke(Method.java:566)
          [javac]     at org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:58)
          [javac]     at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1395)
          [javac]     at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:1121)
          [javac]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
          [javac]     at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
          [javac]     at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          [javac]     at java.base/java.lang.reflect.Method.invoke(Method.java:566)
          [javac]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
          [javac]     at org.apache.tools.ant.Task.perform(Task.java:348)
          [javac]     at org.apache.tools.ant.Target.execute(Target.java:435)
          [javac]     at org.apache.tools.ant.Target.performTasks(Target.java:456)
          [javac]     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
          [javac]     at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
          [javac]     at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
          [javac]     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441)
          [javac]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
          [javac]     at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
          [javac]     at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          [javac]     at java.base/java.lang.reflect.Method.invoke(Method.java:566)
          [javac]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
          [javac]     at org.apache.tools.ant.Task.perform(Task.java:348)
          [javac]     at org.apache.tools.ant.Target.execute(Target.java:435)
          [javac]     at org.apache.tools.ant.Target.performTasks(Target.java:456)
          [javac]     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
          [javac]     at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
          [javac]     at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
          [javac]     at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
          [javac]     at org.apache.tools.ant.Main.runBuild(Main.java:857)
          [javac]     at org.apache.tools.ant.Main.startAnt(Main.java:236)
          [javac]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:287)
          [javac]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:113)
          [javac] 2 errors
      

      I tried to fix it by upgrading jboss-logging which seemed to work. Additionally I had to fix some tracef calls which were marked as ambiguous with new version.

      2. java.xml.bind.* was removed from jdk
      we should probably define it as external dependency

      and there is likely more issues ...

              Unassigned Unassigned
              msimka@redhat.com Martin Simka
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: