Extending a java class that has a two constructors or has a protected constructor #1200
-
I have two in my opinion similar problems.
Till now, I had no success in subclassing both above case with the help of JavaAdapter. Do you have any idea how this could be reached? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
Might these be of help? #627, #900 (comment) |
Beta Was this translation helpful? Give feedback.
-
AFAIK a protected constructor means it can only be called from within the same package, either when subclassing or for instantiation, which makes my assumption correct I'd say
I'm just going off of the info you gave, that you get errors when you try to use the protected constructor when subclassing using the JavaAdapter and off of the info mentioned above about protected constructors. Haven't looked at the actual implementation in Rhino |
Beta Was this translation helpful? Give feedback.
-
Going to mark this question as Answered (as there's not been any more activity): |
Beta Was this translation helpful? Give feedback.
Going to mark this question as Answered (as there's not been any more activity):
For 1: answer provided via links to cases that detail how to achieve the desired result
For 2: determined that is not a currently supported feature of the JavaAdapter. Feel free to file an issue or provide a PR