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

Missing calls to Log.useSource() in JavacTrees

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 25
    • tools
    • None
    • jdk-25+9-73-gba28119642a

    • generic
    • generic

      The compiler has an implicit requirement that whenever a warning is emitted at a source code position, the Log singleton must already be configured for the corresponding source file via the method Log.useSource(). In particular, this must be done before any kind of attribution.

      During testing it was discovered that there are two places in JavacTrees.java where this is not being done before recursing into attribution. This happens in these two methods:

      public TypeMirror getType(DocTreePath path)

      private Symbol attributeDocReference(TreePath path, DCReference ref)

            acobbs Archie Cobbs
            acobbs Archie Cobbs
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: