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

duplicate case label error in DomainClassesMetadata

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.60.0.Final
    • 7.55.0.Final
    • executable model
    • None
    • 2021 Week 31-33 (from Aug 2), 2021 Week 34-36 (from Aug 23), 2021 Week 37-39 (from Sep 13), 2021 Week 40-42 (from Oct 4)
    • 3
    • Undefined
    • NEW
    • NEW

      If a super class has isResource() method and a sub class has getResource() method, exec-model kjar build results in DomainClassModel like this:

              @Override
              public int getPropertyIndex( String name ) {
                  switch(name) {
                      case "resource": return 0;
                      case "resource": return 1;
                   }
                   throw new RuntimeException("Unknown property '" + name + "' for class class class com.sample.SubClass");
              }
      

      so fails to compile

      [INFO] -------------------------------------------------------------
      [ERROR] COMPILATION ERROR : 
      [INFO] -------------------------------------------------------------
      [ERROR] /home/tkobayas/workspaces/workspace12_issues-1181/Ex-basic-kjar-7.55/target/generated-sources/drools-model-compiler/main/java/com/sample/DomainClassesMetadata7b8bf9cd17324a47a951232301c89844.java:[21,17] duplicate case label
      

              rhn-support-tkobayas Toshiya Kobayashi
              rhn-support-tkobayas Toshiya Kobayashi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: