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

XMLWordPrintable

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

      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+.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: