Project

General

Profile

Actions

Bug #16014

closed

Change validation does not compile with latest version

Added by Vincent MEMBRÉ over 4 years ago. Updated over 4 years ago.

Status:
Released
Priority:
N/A
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:

Description

Compilation fails in rudder 5.0.15 on change validation plugin because of our switch to value class for Id classes (NoeId, DirectiveId ...)

with the following error:

Parameter type in structural refinement may not refer to a user-defined value classdef

It's because structural types (type created on demand like here

 def treenode = new TreeNode { }

has member using a value class as parameter

def DirectiveChildren(directiveId : DirectiveId)

changing to a class instead of def in treenode fix the issue

Actions #1

Updated by Vincent MEMBRÉ over 4 years ago

  • Status changed from New to In progress
Actions #2

Updated by Vincent MEMBRÉ over 4 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Vincent MEMBRÉ to Nicolas CHARLES
  • Pull Request set to https://github.com/Normation/rudder-plugins/pull/199
Actions #3

Updated by Vincent MEMBRÉ over 4 years ago

  • Status changed from Pending technical review to Pending release
Actions #4

Updated by Vincent MEMBRÉ over 4 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 5.0-1.4 which was released today.

Actions

Also available in: Atom PDF