RE: Use of a class in groovy script at Portal which is extended in code

Darshan Jethwani, modified 5 Years ago. New Member Posts: 4 Join Date: 10/16/19 Recent Posts
So In my code base there is situate like class b is extending class and now I want to use method of class b in Groovy script at Portal -> Server Admin -> Script, How can I achieve this? Thanks in Advance
thumbnail
Christoph Rabel, modified 5 Years ago. Liferay Legend Posts: 1555 Join Date: 9/24/09 Recent Posts
I think, you have to be more specific. Which class are you extending?
Can't you just create a new instance of "b" and invoke the method?
Darshan Jethwani, modified 5 Years ago. New Member Posts: 4 Join Date: 10/16/19 Recent Posts
In my code base it is something like this class B extends class A{}, and now I want to use one method of class B but when I try to create an object it is giving me error like 
groovy.lang.MissingPropertyException: No such property: className for class: Script1
thumbnail
Christoph Rabel, modified 5 Years ago. Liferay Legend Posts: 1555 Join Date: 9/24/09 Recent Posts
I think, you need to post some minimal example that produces the error. The script and the Java code could be relevant.