Message6941

Author amak
Recipients amak, kwatford
Date 2012-03-20.22:45:10
SpamBayes Score 0.000120146
Marked as misclassified No
Message-id <1332283510.66.0.0900215581119.issue1537@psf.upfronthosting.co.za>
In-reply-to
Content
> I added the unconditional ImportError and it was, as one would expect, 
> caught, resulting in the non-mangled name being used and everything working.

AS I thought.

Let's focus on trying to get the import working correctly.

How about this?

#######################

import java

try:
    # Name mangled by jarjar?
    import org.python.apache.xerces.parsers.SAXParser
    _xerces_parser = "org.python.apache.xerces.parsers.SAXParser"
except ImportError:
    _xerces_parser = "org.apache.xerces.parsers.SAXParser"
except java.lang.ClassDefNotFoundException:
    _xerces_parser = "org.apache.xerces.parsers.SAXParser"

#######################

We can tidy it up later if it works.
History
Date User Action Args
2012-03-20 22:45:10amaksetmessageid: <1332283510.66.0.0900215581119.issue1537@psf.upfronthosting.co.za>
2012-03-20 22:45:10amaksetrecipients: + amak, kwatford
2012-03-20 22:45:10amaklinkissue1537 messages
2012-03-20 22:45:10amakcreate