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

Hide element writing across the ClassFile API

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P3
    • 24
    • 24
    • core-libs
    • None

    Description

      One of the most glaring anomalies of the ClassFile API is the exposure of WritableAttribute without the reading counterparts. These writing hooks are almost never used by the clients, and their exposure imposes a massive maintenance burden and a blunt to understanding the best practices of the ClassFile API.

      We must restrict the appearance of BufWriter to AttributeMapper only, just like its ClassReader counterpart; all other appearances and unrelated APIs will all be withdrawn to implementation.

      Removals include:
      - LocalVariable.writeTo
      - LocalVariableType.writeTo
      - WritableElement
      - BufWriter.writeList/writeBytes/writeTo/copyTo
      - ClassReader.compare

      Attachments

        Issue Links

          Activity

            People

              liach Chen Liang
              liach Chen Liang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: