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

javax.lang.model.SourceVersion.is* methods should not be static

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Not an Issue
    • Affects Version/s: 6
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:

      Description

      http://download.java.net/jdk6/docs/api/javax/lang/model/SourceVersion.html#isKeyword(java.lang.CharSequence)

      says

      "Returns whether or not s is a keyword or literal in the latest source version."

      This method seems unreliable because it could change from release to release. E.g. in 1.3 this would return false for "assert" but true in 1.4+.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                darcy Joe Darcy
                Reporter:
                jglick Jesse Glick (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: