0 Replies Latest reply on Aug 25, 2003 8:45 AM by vc

    modifiers again

    vc

      Hello,

      In my application I want to change modifiers of fields and methods of certain classes. The answer on my previous problem "how to change field modifiers" was already answered, thanks. Now I've concentrated to change method modifiers. Here I've found an interesting effect.

      my class has method:
      private synchronized void localReset()

      I've change the "private" to "public", I've supposed that I'll get something like:
      public synchronized void localReset()

      but I've got:

      public void localReset()

      It was a disappointment. Why is it so, why synchronized was omitted? The solution could be a little bit richer API.

      Thankx in advance, VC