How to get the convert a Jython class to Java class in Jython intepreter?

I don't think this is possible. Jython classes are not Java classes, and as far as I can tell there's no pure-jython mechanism to corce it Generally, I would say that you should take the object factory method mentioned in the Jython book and combine with a proxy class, which is what you'd pass as the parameter However, that method involves writing lots of Java, and it seems that in your case it would simpler to just write the MyUdf class in Java and be done with it Alternatively, you might be able to do something with dynamic bytecode generation, but that's a whole new rabbit hole.

I don't think this is possible. Jython classes are not Java classes, and as far as I can tell there's no pure-jython mechanism to corce it. Generally, I would say that you should take the object factory method mentioned in the Jython book, and combine with a proxy class, which is what you'd pass as the parameter.

However, that method involves writing lots of Java, and it seems that in your case it would simpler to just write the MyUdf class in Java and be done with it. Alternatively, you might be able to do something with dynamic bytecode generation, but that's a whole new rabbit hole...

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions