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

Diagnostic examples for diagnostics from ClassReader are awkward

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P3
    • tbd
    • 8
    • tools
    • None

    Description

      In JDK-8025087, diagnostic examples were introduced for diagnostics reported from ClassReader:
      http://hg.openjdk.java.net/jdk8/tl/langtools/rev/1b469fd31e35

      The examples require broken classfiles (classfiles that are not normally produced by javac), which is currently somewhat awkward to achieve. In particular, the examples use an annotation processor and the com.sun.tools.classfile library, to produce the broken classfiles, which is verbose and may cause confusion.

      As a side-effect, it also causes dependency between the make/build.xml's "diags-examples" target and "build-javap" target.

      Options to write diagnostic examples, that require specifically broken classfiles, more conveniently should be explored.

      Attachments

        Issue Links

          Activity

            People

              jlahoda Jan Lahoda
              jlahoda Jan Lahoda
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: