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

Invalid unicode in javadoc and comments

XMLWordPrintable

    • generic
    • generic

      A DESCRIPTION OF THE PROBLEM :
      This javdoc causes the Problem "Invalid unicode"
      /**
      * \u
      */

      The unicode escape sequence has no effect in javadoc, so why bother checking it?



      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Step 1: Write a comment
      Step 2: Write "\u"

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      No Problem
      ACTUAL -
      Problem

      ---------- BEGIN SOURCE ----------
      package example;

      /**
       * \u
       */
      public class Class {

      }
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      "\\u"

      FREQUENCY : always


            tongwan Andrew Wang
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: