> build/_GoodStuff/__wrap__.cpp:1644: error: no 'void 
> com::parc::support::FooBar::_set_m_b_atomic(jboolean) const' member function 
> declared in class 'com::parc::support::FooBar'
> 
> Looking at the class with
>   $JAVA_HOME/bin/javap -classpath /tmp/x com.parc.support.FooBar
> we find that it does indeed have something called "m_b_atomic":
> 
>     public boolean m_b_atomic;
> 
> Looking at the JCC-generated FooBar.h file:
> 
> % grep m_b_atomic build/_GoodStuff/com/parc/support/FooBar.h 
>                             fid_m_b_atomic,
>                         jboolean _get_m_b_atomic() const;
> %
> 

Here's a patch:

Index: jcc/jcc/cpp.py
===================================================================
--- jcc/jcc/cpp.py      (revision 382)
+++ jcc/jcc/cpp.py      (working copy)
@@ -627,6 +627,7 @@
         for field in instanceFields:
             fieldType = field.getType()
             fieldName = field.getName()
+            modifiers = field.getModifiers()
             line(out, indent, '%s _get_%s() const;',
                  typename(fieldType, cls, False), fieldName)
             if not Modifier.isFinal(modifiers):
Index: jcc/setup.py
===================================================================
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to