[Biojava-l] build error w/ JBuilder
Sat, 12 Aug 2000 21:06:51 +0200
Strange: HEADER etc. are (private) static fields of the private
(non-static) inner class GenbankContext. I'm frankly not aware that
(non-static?) inner classes are not allowed to have static members - and
i just checked the Java Language Spec and it doesn't say anything on
this subject at all! Would be interesting to see what jikes says to this
usage of static fields in non-static inner classes - jikes is usually
very rigorous with respect to the Language Spec...
(It seems to me that GenbankContext could easily be a static inner class
if it's constructor were passed the featureBuilder field explicitly.
Maybe the problem then goes away... This is merely an implementation
change because fortunately GenbankContext is private.)
Ann Loraine wrote:
> I'm having a bit of trouble building biojava w/ JBuilder,
> my favorite Windows IDE.
> The problem is with org.biojava.bio.seq.io.GenbankFormat
> variables HEADER, FEATURES, AND SEQUENCE -- JBuilder complains
> that these variables "cannot be static..; only members of
> interfaces and top-level classes can be static."
> org.biojava.bio.seq.io.EmblFormat also has this problem.
> Ann E. Loraine
> Biojava-l mailing list - Biojavafirstname.lastname@example.org
Gerald.Loeffler@vienna.at _________________ Software Architect
http://www.imp.univie.ac.at ____ http://www.daemonstration.com
OOA&D, Java, J2EE, JSP, Servlets, JavaBeans, ODBMS, RDBMS, XML