Wrong default value of snippet lang attribute

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 24
    • Affects Version/s: None
    • Component/s: tools
    • None
    • b07
    • generic
    • generic

      The doc comment spec says that the default value for the `lang` attribute in inline snippets is `java`, and that it is derived from the file name for external snippets. However, currently the code uses `null` as default lang for internal snippets, and only recognizes "java" and "properties" as lang values for external snippets.

      The code should follow the specification (or else the specification should be updated). We may also want to update the spec to give a recommendation for adding a lang attribute for non-java inline snippets.
        

            Assignee:
            Pavel Rappo
            Reporter:
            Hannes Wallnoefer
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: