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

objects of Scanner class when only one oblect is closed it closed all objects

XMLWordPrintable

    • generic
    • generic
    • Not verified

      ADDITIONAL SYSTEM INFORMATION :
      I am try this on linux ,Ubuntu and windows both see the same peoblem.

      A DESCRIPTION OF THE PROBLEM :
      When create more then one Scanner class object and we tring to close only one object it closed all the objects of Scanner class
      May be it happen becouse all Scanner objects which is same is pointing same location
      like python
      a=5
      b=5
      then id(a) is eqaul to id(b)


            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: