This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: Missing Code Attribute with module-export
Chris Dean wrote:
Hmm, that changes the problem but doesn't quite fix it. Now I get this
error when trying to use the class Bar:
Exception in thread "main" java.lang.VerifyError: (class: Bar, method:
myMethod signature: ()Lgnu/lists/PairWithPosition;) Falling off the
end of the code at Foo2.main(Foo2.java:15)
The attached fixes this problem.
However, there are still other problems that I'll look into
later, hopefully today.
However, we would also like a non-exported class to not be PUBLIC.
I'd export the class if I knew how! ;-).
The goal is that this should work:
(module-export f <Bar>)
--
--Per Bothner
per at bothner dot com http://per.bothner.com/
Index: FindTailCalls.java
===================================================================
RCS file: /cvs/kawa/kawa/gnu/expr/FindTailCalls.java,v
retrieving revision 1.26
diff -u -r1.26 FindTailCalls.java
--- FindTailCalls.java 10 Nov 2002 21:43:10 -0000 1.26
+++ FindTailCalls.java 2 Apr 2003 19:39:00 -0000
@@ -196,6 +196,7 @@
child = child.nextSibling)
{
if (child.getCanRead()
+ || child.isClassMethod()
|| child.min_args != child.max_args)
child.flags |= LambdaExp.CANNOT_INLINE;
else