I currently analyze Katalon Studio and it’s capabilities to manage java code in keyword files. When I was playing around with access modifiers (private, protected, public, package private) I got the feeling, Katalon Studio sometimes ignores these modifiers. This would lead to polluted namespaces in the end, I believe.
Let me show you two examples.
- I have packages “a” and “b” and a class “A” in package “a” and a class “B” in package “b”. Class “B” is package private. I can still see it and call it’s methods from class “A”.
- I have two classes “A” and “B” again. “A” contains a private method. It seems, “B” can call it without problems.
The access modifiers seem to be respected when it comes to private classes. It seems, I can’t access those from different classes and I get an IllegalAccessException - this seems ok.
As we intend to make heavy use of Katalon Studio’s scripting capabilities I’m a bit worried, our namespaces would get too crowded. Could somebody please tell me what’s going on here and if I can somehow get Katalon Studio to behave as the java specification commands? Could this maybe be a bunch of bugs?