java.lang.RuntimeException: Uncompilable source code - local variable originalText is accessed from within inner class; needs to be declared final

Coderanch | abrar alvi | 4 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    button problem

    Coderanch | 4 years ago | abrar alvi
    java.lang.RuntimeException: Uncompilable source code - local variable originalText is accessed from within inner class; needs to be declared final

    Root Cause Analysis

    1. java.lang.RuntimeException

      Uncompilable source code - local variable originalText is accessed from within inner class; needs to be declared final

      at EventDemo$1.actionPerformed()
    2. Unknown
      EventDemo$1.actionPerformed
      1. EventDemo$1.actionPerformed(EventDemo.java:41)
      1 frame
    3. Java RT
      AccessController.doPrivileged
      1. javax.swing.Timer.fireActionPerformed(Timer.java:312)
      2. javax.swing.Timer$DoPostEvent.run(Timer.java:244)
      3. java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
      4. java.awt.EventQueue.dispatchEventImpl(EventQueue.java:721)
      5. java.awt.EventQueue.access$200(EventQueue.java:103)
      6. java.awt.EventQueue$3.run(EventQueue.java:682)
      7. java.awt.EventQueue$3.run(EventQueue.java:680)
      8. java.security.AccessController.doPrivileged(Native Method)
      8 frames