Hi All,
I am trying to develop a custom class loader to load a singleton class.
Below are the code snippets involved.
I compiled Singleton1.java and got the class file in the same folder.
When i am trying to run ChkSingletonCL.java, i am getting a java.lang.IllegalAccessException
@ line 45. How can I run the Singleton class with custom class loader.
The Error msg. is
"java.lang.IllegalAccessException: Class sripy.classLoader.ChkSingletonCL can not access a member of class Singleton1 with modifiers "private"
Basically i want to
test the Singleton behaviours in the custom class loaders.
Singleton1.java
ChkSingletonCL.java
regards
sri