Skip to content

Make fails ber.go:386: undefined: reflect.NewValue #1

Description

@hsoj

With the latest 'Release' branch of Golang the asn1-ber package fails to build properly due to changes with the reflect package. The change was reflect.NewValue no longer exists and was replaced with reflect.ValueOf.

RESOLUTION:

@@ -383,7 +383,7 @@
    p.Description = Description

    if Value != nil {
-       v := reflect.NewValue(Value)
+       v := reflect.ValueOf(Value)

        if ( ClassType == ClassUniversal ) { 
            switch Tag {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions