This is the mail archive of the kawa@sources.redhat.com mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: defmacro: Null pointer exceptions with compiled files


Per Bothner wrote:

I took a look at the archive compilation failure.
The problem appears to be that the $literals$ method, which
initializes the literals (constant data), isn't
being generated.  Not sure why yet.

Oh, and a work-around: Replace in Compilation.java this:


Method emitLiteralsMethod = null;

    if (curClass == mainClass
	&& (staticModule || clinitChain != null
	    || litTable.literalsChain != null || module.applyMethods != null
	    || generateMain || generateApplet || generateServlet))
      {

by:

Method emitLiteralsMethod = null;

    if (curClass == mainClass)
      {

--
	--Per Bothner
per@bothner.com   http://per.bothner.com/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]