[Laszlo-dev] How to fake yourself out in Java
Henry Minsky
henry.minsky at gmail.com
Thu Dec 4 15:52:32 PST 2008
I wrote a class which looked like this
class LibraryCompilation {
ImportCompiler importCompiler;
File infile;
String outfile;
String liburl;
Element element;
LibraryCompilation (ImportCompiler ImportCompiler, File infile,
String outfile, String liburl, Element element) {
this.importCompiler = importCompiler;
this.infile = infile;
this.outfile = outfile;
this.liburl = liburl;
this.element = element;
}
I named the first arg to the constructor "ImportCompiler" instead of
"importCompiler". The code compiled fine, but the
value of the "importCompiler" slot was always null. Only took about
fifteen or twenty minutes to figure this out :-(
--
Henry Minsky
Software Architect
hminsky at laszlosystems.com
More information about the Laszlo-dev
mailing list