Menu

#12 Instantiation of an abstract class during readPersistable

1.2.0
closed-fixed
weaver (8)
5
2009-07-03
2009-07-03
No

public abstract class Person implements Persistable {}

public class AddressBook implements Persistable {

Person person;
...
}

This kind of construction will cause a java/lang/InstantiationError: Cannot instantiate bad class. at runtime.

Discussion

  • Thiago Leão Moreira

    Added a testcase to replicate it under revision 496.

     
  • Thiago Leão Moreira

    Committed revision 497.

     
  • Thiago Leão Moreira

    • status: open --> closed-fixed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.