From: <pj...@us...> - 2009-05-09 22:31:12
|
Revision: 6320 http://jython.svn.sourceforge.net/jython/?rev=6320&view=rev Author: pjenvey Date: 2009-05-09 22:30:55 +0000 (Sat, 09 May 2009) Log Message: ----------- less verbose unbootstraped message Modified Paths: -------------- trunk/jython/src/org/python/core/PyObject.java Modified: trunk/jython/src/org/python/core/PyObject.java =================================================================== --- trunk/jython/src/org/python/core/PyObject.java 2009-05-09 21:06:49 UTC (rev 6319) +++ trunk/jython/src/org/python/core/PyObject.java 2009-05-09 22:30:55 UTC (rev 6320) @@ -47,6 +47,12 @@ primitiveMap.put(Long.TYPE, Long.class); primitiveMap.put(Float.TYPE, Float.class); primitiveMap.put(Double.TYPE, Double.class); + + if (Py.BOOTSTRAP_TYPES.size() > 0) { + Py.writeWarning("init", "Bootstrap types weren't encountered in bootstrapping: " + + Py.BOOTSTRAP_TYPES); + + } } public PyObject(PyType objtype) { @@ -4068,13 +4074,6 @@ // OverflowErrors are handled in PyLong.asIndex return __index__().asInt(); } - - static { - for (Class<?> unbootstrapped : Py.BOOTSTRAP_TYPES) { - Py.writeWarning("init", "Bootstrap type wasn't encountered in bootstrapping[class=" - + unbootstrapped + "]"); - } - } } /* This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |