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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not an Issue
    • P3
    • None
    • 6
    • core-libs

    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

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: