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

enum coding failing to transpile to Javascript

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 2.11.1_js
    • Component/s: jalview-j2s
    • Labels:
      None

      Description

      3 enum classes (generated by JAXB tooling from XML schema) are failing to transpile:
      jalview.xml.binding.jalview.FilterBy, NoValueColour and binding.sifts.EntityType.
      Other enum types have transpiled e.g. ThresholdType.
      Suggestive is that the failing classes all have code like:
         public static FilterBy fromValue(String v) {
              for (FilterBy c: FilterBy.values()) { ...
      A minimal enum class with similar code also fails to transpile.

        Attachments

          Activity

            People

            Assignee:
            gmungoc Mungo Carstairs
            Reporter:
            soares Ben Soares
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: