Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot inherit bridged classes #62

Closed
nbouteme opened this issue Nov 9, 2021 · 1 comment
Closed

Cannot inherit bridged classes #62

nbouteme opened this issue Nov 9, 2021 · 1 comment

Comments

@nbouteme
Copy link

nbouteme commented Nov 9, 2021

For example:

DefaultAnnotationHandler = ghidra.program.model.data.DefaultAnnotationHandler

class CPPAnnotationHandler(DefaultAnnotationHandler):
    FILE_EXTENSIONS = ["c", "h", "cpp"]
    def __init__(self):
        DefaultAnnotationHandler.__init__(self)
    def getPrefix(self, enum, member):
        return ""
    def getSuffix(self, enum, member):
        return ""
    def getPrefix(self, comp, dtc):
        return ""
    def getSuffix(self, comp, dtc):
        return ""
    def getDescription(self):
        return "Default C Annotations"
    def getLanguageName(self):
        return "C++"
    def getFileExtensions(self):
        return self.FILE_EXTENSIONS
    def toString(self):
        return self.getLanguageName()

Instanciating CPPAnnotationHandler causes

jfx_bridge.bridge.BridgeException: ('maximum recursion depth exceeded (Java StackOverflowError)', <_bridged_exceptions.RuntimeError('RuntimeError('maximum recursion depth exceeded (Java StackOverflowError)',)', type=exceptions.RuntimeError, handle=c22c43a8-f154-4f60-a008-3a1a9e96cabf)>)
@nbouteme
Copy link
Author

nbouteme commented Nov 9, 2021

Nevermind, this is explained on jfx_bridge

@nbouteme nbouteme closed this as completed Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant