butek       2002/06/14 11:36:15

  Modified:    java/src/org/apache/axis/utils JavaUtils.java
  Log:
  TCK found a bug.  WSDL2Java generated a method called "null".  I've
  added "null" to the Java keywords list.
  
  Revision  Changes    Path
  1.48      +13 -10    xml-axis/java/src/org/apache/axis/utils/JavaUtils.java
  
  Index: JavaUtils.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/utils/JavaUtils.java,v
  retrieving revision 1.47
  retrieving revision 1.48
  diff -u -r1.47 -r1.48
  --- JavaUtils.java    10 Jun 2002 23:44:12 -0000      1.47
  +++ JavaUtils.java    14 Jun 2002 18:36:15 -0000      1.48
  @@ -422,19 +422,22 @@
       /**
        * These are java keywords as specified at the following URL (sorted 
alphabetically).
        * 
http://java.sun.com/docs/books/jls/second_edition/html/lexical.doc.html#229308
  +     * Note that false, true, and null are not strictly keywords; they are literal 
values,
  +     * but for the purposes of this array, they can be treated as literals.
        */
       static final String keywords[] =
       {
  -        "abstract",     "boolean",   "break",      "byte",     "case",
  -        "catch",        "char",      "class",      "const",    "continue",
  -        "default",      "do",        "double",     "else",     "extends",
  -        "false",        "final",     "finally",    "float",    "for",
  -        "goto",         "if",        "implements", "import",   "instanceof",
  -        "int",          "interface", "long",       "native",   "new",
  -        "package",      "private",   "protected",  "public",   "return",
  -        "short",        "static",    "strictfp",   "super",    "switch",
  -        "synchronized", "this",      "throw",      "throws",   "transient",
  -        "true",         "try",       "void",       "volatile", "while"
  +        "abstract",  "boolean",      "break",      "byte",      "case",
  +        "catch",     "char",         "class",      "const",     "continue",
  +        "default",   "do",           "double",     "else",      "extends",
  +        "false",     "final",        "finally",    "float",     "for",
  +        "goto",      "if",           "implements", "import",    "instanceof",
  +        "int",       "interface",    "long",       "native",    "new",
  +        "null",      "package",      "private",    "protected", "public",
  +        "return",    "short",        "static",     "strictfp",  "super",
  +        "switch",    "synchronized", "this",       "throw",     "throws",
  +        "transient", "true",         "try",        "void",      "volatile",
  +        "while"
       };
   
       /** Collator for comparing the strings */
  
  
  


Reply via email to