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

JTextComponents incorrectly claim to be partly thread safe

XMLWordPrintable

      Some methods of JTextComponens claim to be "thread safe",
      see for example JTextComponent.setText() its javadoc says:
      <This method is thread safe, although most Swing methods are not>

      But looking to its implementation it's quite obvious that it isn't thread safe
      if I setText() on one thread and getText() on another thread
      it will likely cause a problem

      Current situation: text package claim some of their methods as thread safe

      Expected: No misleading note about thread safety

            serb Sergey Bylokhov
            alexp Alexander Potochkin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: