[pypy-svn] r8145 - pypy/trunk/src/pypy/translator/java

pedronis at codespeak.net pedronis at codespeak.net
Fri Jan 7 16:53:18 CET 2005


Author: pedronis
Date: Fri Jan  7 16:53:17 2005
New Revision: 8145

Modified:
   pypy/trunk/src/pypy/translator/java/genjava.py
Log:
some jvm (the spec perhaps) require main to be public.



Modified: pypy/trunk/src/pypy/translator/java/genjava.py
==============================================================================
--- pypy/trunk/src/pypy/translator/java/genjava.py	(original)
+++ pypy/trunk/src/pypy/translator/java/genjava.py	Fri Jan  7 16:53:17 2005
@@ -74,7 +74,7 @@
         entrypoint = self.nameof(self.translator.functions[0])
         f = self.jdir.join('test.java').open('w')
         print >> f, 'class test extends PyObject {'
-        print >> f, '    static void main(String[] argv) {'
+        print >> f, '    static public void main(String[] argv) {'
         print >> f, '        PyObject result = %s.op_call_%d(%s);' % (
             entrypoint, len(inputargs),
             ', '.join([self.nameof(x) for x in inputargs]))



More information about the Pypy-commit mailing list