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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • 6
    • 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+.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: