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

Hide Transform implementation for Class-File API

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • 24
    • core-libs

      A few improperly exposed ClassFile transformation APIs can be hidden:
      1. `ClassFileTransform$ResolvedTransform` and `ClassFileTransform::resolve`: This is supposed to allow users to optimize their transform by passing chained builders. However, users don't have access to chained builders to implement these, and the resolved transform is error-prone in actual usage as well, as there's nothing to ensure the start and end handlers are run.
      2. `ClassFileBuilder` exposes meaningless `canWriteDirect` (only useful to attributes, which are the only ones that write CP indices) and method `transform`'s return type is not chained, and its name is a bit confusing.

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

              Created:
              Updated:
              Resolved: