Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-4051

Wrong compiled type definition

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 7.21.0.Final
    • core engine
    • None
    • 2019 Week 20-22
    • NEW
    • NEW

    Description

      I defined a drl file that declare a type like :

      package com.test.rules.model.process;
      
      // Process related objects 
      
      declare Process
      	caseRef		: String	 @key
      	owner		: String	 @key
      end
      

      At rules compile time, Drools throws the following exception :

      Caused by: java.lang.IllegalArgumentException: Error parsing bootstrap resources : New declaration of java.lang.Process can't declare a different set of fields
      existing : []
      declared : [caseRef]
      diff : [++caseRef]
      Unable to process type Process
      

      Drools compiles java.lang.Process instead of my customized type.

      Attachments

        Activity

          People

            mfusco@redhat.com Mario Fusco
            stondini@gmail.com Stephane Tondini (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: