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

javac should use deterministic data structures for managing free type listeners

XMLWordPrintable

    • b99
    • Not verified

      At class InferenceContext we keep a map of free type listeners. The order in which these listeners are executed is important and can be the difference between a program be accepted or not. Sometimes these issues are hard/impossible to reproduce because a given order is not reproducible between executions. Probably this listeners design needs a whole refactoring but in the meantime using a data structure like LinkedHashMap could be beneficial to increase predictability.

            vromero Vicente Arturo Romero Zaldivar
            vromero Vicente Arturo Romero Zaldivar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: