yep - looks like a bug to me on a quick look - do you want to attach a simple test to a JIRA?
Getting exception below building rules that build in 3.0.4.
Looking at FunctionBuilder we have at line 106. The code in red looks suspicious? Seems it should be mapping "mapping" against the name.But that is not what is the cause of the exception apparently put is not supported?
String name = pkg.getName() + "." + ucFirst( functionDescr.getName() );
LineMappings mapping = new LineMappings( name );
mapping.setStartLine( functionDescr.getLine() );
mapping.setOffset( functionDescr.getOffset() );
lineMappings.put( name, lineMappings );[java] INFO: ============== Start build RulePackage: [engrules.ers8600] ===
======
[java] Feb 21, 2007 2:38:28 PM com.nortel.connect.rbuilder.RulePackage addR
ulesFromDrlFile
[java] INFO: adding Rules from: ERS8600Rules.drl (no associated DSL)
[java] Feb 21, 2007 2:38:28 PM com.nortel.connect.rbuilder.RulePackage addR
ulesFromDrlFile
[java] INFO: parsed rules no dsl
[java] java.lang.UnsupportedOperationException
[java] at java.util.AbstractMap.put(AbstractMap.java:228)
[java] at org.drools.semantics.java.FunctionBuilder.build(FunctionBuild
er.java:110)
[java] at org.drools.compiler.PackageBuilder.addFunction(PackageBuilder
.java:326)
[java] at org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.
java:214)
[java] at com.nortel.connect.rbuilder.RulePackage.addRulesFromDrlFile(R
ulePackage.java:226)
[java] at com.nortel.connect.rbuilder.RulePackager.build(RulePackager.j
ava:205)
[java] at com.nortel.connect.rbuilder.RulePackager.buildAll(RulePackage
r.java:141)
[java] at com.nortel.connect.rbuilder.RulePackager.main(RulePackager.ja
va:91)
Regards,
Tom G
_______________________________________________
rules-dev mailing list
rules-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev