]
Mario Fusco resolved DROOLS-1444.
---------------------------------
Resolution: Rejected
KieSession to implement java.lang.AutoCloseable
-----------------------------------------------
Key: DROOLS-1444
URL:
https://issues.jboss.org/browse/DROOLS-1444
Project: Drools
Issue Type: Enhancement
Components: core engine
Affects Versions: 6.5.0.Final
Reporter: tech meshter
Assignee: Mario Fusco
Priority: Minor
Attachments: AutocloseableSample.java
Given the new Java 7 and 8 syntax features, it would be useful that KieSession (and maybe
some other APIs that involve "disposability") to implement
java.lang.AutoCloseable. The implementation can call directly the "dispose"
method (unless I miss something) and over time dispose might become deprecated.