Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-3716

Compile of Ozone fails with JDK 11+

    XMLWordPrintableJSON

Details

    Description

      @PostConstruct annotation is removed from JDK (it's Java EE) in the recent JDKs.

      It's used by the Configuration annotation but we don't need to use Java EE annotations:

      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project hadoop-hdds-config: Compilation failure: Compilation failure: 
      [ERROR] /Users/sbanerjee/ozone_fork/hadoop-hdds/config/src/main/java/org/apache/hadoop/hdds/conf/ConfigurationReflectionUtil.java:[20,24] cannot find symbol
      [ERROR]  symbol:  class PostConstruct
      [ERROR]  location: package javax.annotation
      [ERROR] /Users/sbanerjee/ozone_fork/hadoop-hdds/config/src/main/java/org/apache/hadoop/hdds/conf/ConfigurationReflectionUtil.java:[139,38] cannot find symbol
      [ERROR]  symbol:  class PostConstruct
      

       

      Thanks  Shashikant for the bug report.

      Attachments

        Issue Links

          Activity

            People

              elek Marton Elek
              elek Marton Elek
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: