Uploaded image for project: 'Jalview'
  1. Jalview
  2. JAL-3263

SwingJS conflict with fields and methods starting with _

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.11.2.0
    • Component/s: jalview-j2s
    • Labels:
      None

      Description

      SwingJS has a small number of fields and methods that are added to standard Java classes or in classes that are inserted into the Java hierarchy (java.awt.JSComponent.java superclass of Container, for example). It is possible for a developer's subclass to cause problems with overloading these fields and methods, because they will not be identified by the j2s transpiler in projects other than java2script itself. The fields, at least, were marked by a starting _. This caused a problem with Varna using _border, for example. So the _ has been replaced by Mandarin "secret", 秘 u+79D8.

        Attachments

          Activity

            People

            Assignee:
            hansonr Bob Hanson
            Reporter:
            hansonr Bob Hanson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: