#1278 AtomContainerAtomPermutor ClassCastException

cdk-1.4.x
closed
nobody
graph (1)
1
2013-05-31
2012-11-08
John May
No

The AtomContainerAtomPermutor should cast to an interface not the implementation:

Exception in thread "main" java.lang.ClassCastException: org.openscience.cdk.silent.Atom cannot be cast to org.openscience.cdk.Atom

The cast is no longer needed since the clone methods were updated to return the interfaces.

Discussion

  • John May

    John May - 2012-11-08
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,4 +1,4 @@
    -The AtomContainerAtomPermutor shout cast to an interface not the implementation:
    +The AtomContainerAtomPermutor should cast to an interface not the implementation:
    
     Exception in thread "main" java.lang.ClassCastException: org.openscience.cdk.silent.Atom cannot be cast to org.openscience.cdk.Atom
    
     
  • John May

    John May - 2012-11-08

    Actually thinking about this we should probably try to remove cdk-graph dependance on cdk-data.

     
    Last edit: John May 2012-11-08
  • John May

    John May - 2013-05-31
    • status: open --> closed
     
  • John May

    John May - 2013-05-31

    Fixed by previous patch, this class in master was re-written by gilleain

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks