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

Update javac to remove duplicacy in error messages

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4
    • tbd
    • 9
    • tools

    Description

      During work on JDK-8049130 for creation of golden files for negative tests, it was discovered that the error messages reported for tools/javac/annotations/repeatingAnnotations/UseWrongRepeatable.java were 'almost similar'.

      Error keys reported:
      UseWrongRepeatable.java:17:1: compiler.err.invalid.repeatable.annotation.value.return: java.lang.annotation.Target, java.lang.annotation.ElementType[], UseWrongRepeatable[]
      UseWrongRepeatable.java:17:21: compiler.err.invalid.repeatable.annotation.value.return: java.lang.annotation.Target, java.lang.annotation.ElementType[], UseWrongRepeatable[]
      UseWrongRepeatable.java:14:1: compiler.err.invalid.repeatable.annotation.value.return: java.lang.annotation.Target, java.lang.annotation.ElementType[], UseWrongRepeatable[]


      As confirmed by Joel, error messages in line 17 are duplicate and can be improved. Error message as reported in line 14 should stay.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sogoel Sonali Goel (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: