## Friday, April 17, 2009

### CDK 1.2.1 Released

I just released CDK 1.2.1 (aka The CDK Workshop 2009 Release), which is now available for download from SourceForge. The source can be found in our Git repository. The changes since 1.2.0 are mostly bug fixing, new unit tests, and minor clean up here and there:
Fixed bug 2714283, which properly throws an exception when rings are not closed properly. If a ring is not closed with the appropriate ring number, InvalidSmilesException is thrown. Matches Daylight behaviorFixed bug 2729120 and added unit testUpdated comment to fix bug 2768643.Partial fix for bug 2719237. Made getBondOrderSum static, added unit test for itTypo: proteinl -> proteinMade class public, to unbreak adding it to the build/*.javafilesPartially fixed SMARTS matching for R0. Updated target molecule initialization to explicitly indicate atoms not in a ring and also updated RingMembership atom to do an explicit check when R0 is specified. Partially fixes bug 2587204Fixed dubious equality test. A private method was checking Double objects via reference. Worked fine when they were null. Fails when we need to compare by value. Code is updated to take it into account. Added unit test (and made the method protected so that it can be tested)Added test method annotation. Completes coverage for data moduleRefactored ChiIndexUtils to make it package private. Cleans up public API, since it is only used by chi descriptor code. Updated all dependent classes. Moved test code (which needs to be filled in!) as wellCode cleanup of ChiIndexUtils. Converted to 1.5 idiomsClean up of PathTools and added test method annotation, so that core is completely coveredFixed the previous commit to edit the cdk.keyword line, not the cdk.module lineMore consistent keywords usedAdded a test to ensure that Integer objects are compared by value rather than referenceAdded a test case to check that atom container diffs are correct when using deserialized objectsFixed IntegerDifference so that it actually checks the integer value rather than references of the Integer object. Fixes the problem whereby an object serialized to disk and then deserialized does not match the original object (i.e., non empty diff string)Applied patch #2675819 (Stefan Kuhn): Patch to add a removeReaction to reactionSetUse interface instead of implementationRemoved an unused importUse IAtomContainer instead of IMolecule, as the actual matching is using IAtomContainers already (fixes #2686249)Fixed a ClassCastException (fixes #2685134)Added source attrib to fix building the Ubuntu .debFixed Help build system: use doclet jars in develjar/; updated for new src folder src/main; removed very outdated use of rt.jarRemoved libdepends include for test-ioformats, which does not actually have libdependsUpdated so that if a target atom has no symbol (such as pseudo atoms) the match returns false (rather than an NPE)Fixed proper handling of #n SMARTS querysAdded test case for bug 2686473Added note on Ant 1.7.1 requiredFixed a NPE source: 'null == 2' causes an exception, so first test for nullnessFixed copyright notice for 2009Fixed duplicate storage of layout templates, which only belong in the sdg module, not extra module tooMerge branch 'local1.2' of ../../git-svn/cdk
Thanx for all who reported bug reports!