Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-4551

TypeCalculator.generalize() produces bad types for Struct

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: PUP 3.8.1, PUP 4.1.0
    • Component/s: None
    • Labels:
      None
    • Template:
    • Story Points:
      1
    • Sprint:
      Language 2015-05-13

      Description

      The TypeCalculator.generalize strips all information about type and represented value (or values) when applied to a String. This behavior becomes problematic when generalizing a Struct type since it means that all information about the keys in that struct is lost and a printout of a generalized Struct becomes nonsensical. The struct:

      Struct[{name => String[1], version => String[1]}]
      

      becomes:

      Struct[{'' => String, '' => String}]
      

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  thomas.hallgren Thomas Hallgren
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: