Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8000404

rename javax.tools.GenerateNativeHeader to java.lang.annotation.Native

XMLWordPrintable

    • b66
    • Not verified

      javax.tools.GenerateNativeHeader is a proposed new-in-8 annotation that is used by javac to help determine when to generate native headers. The package causes issues for JIgsaw, since we would like to use the feature on classes in the base module, but do not want any dependence from the base module to the module containing javax.tools.

      Furthermore, it is proposed that the annotation should be directly applied to the constant fields that need to be exported -- and not to the class as a whole.

      Given this, it is proposed to move/rename the annotation to java.lang.annotation.Native with TargetType FIELD.

            jjg Jonathan Gibbons
            jjg Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: