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

Compilation issue with javax.swing.InputVerifier example in javadoc section

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b20
    • CPU:
      x86_64
    • OS:
      windows_10

      Description

      A DESCRIPTION OF THE PROBLEM :
      The sample code does not compile.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Compile.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      No compilation error
      ACTUAL -
      cannot find symbol
               field.setInputVerifier(new InputVerifier() {
               ^
        symbol: variable field
        location: class VerifierTest
      1 error

      ---------- BEGIN SOURCE ----------
      Example from API
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      Solution:
      Rectify line
               field.setInputVerifier(new InputVerifier() {
      to
               field1.setInputVerifier(new InputVerifier() {


        Attachments

          Activity

            People

            Assignee:
            psadhukhan Prasanta Sadhukhan
            Reporter:
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: