• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why can't I use "new Digester()"?

 
gshu
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to use "org.apache.struts.digester.Digester". When I use it, my code compiles with no problem, but it can not continue when it reached the "Digester digester = new Digester();".
It is a empty constructor in Digester class. What wrong with it? Thanks!
 
Junilu Lacar
Bartender
Pie
Posts: 8765
81
Android Eclipse IDE IntelliJ IDE Java Linux Mac Scala Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"gshu"
Please review the JavaRanch Naming Policy. You will need to re-register with a Display name that conforms with the naming policy.
Thanks for your cooperation.
As for your question, the Digester() constructor calls the superclass constructor (org.xml.sax.HandlerBase). This is also an empty constructor which means it calls the no-args constructor of Object. There must be something else causing your problem. Perhaps if you post a few more lines of code, we can get a better idea of what's actually happening.
Please don't forget to re-register. Thanks!
Junilu
 
Guos Hu
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please see the questiion of new registered name Guos Hu
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic