Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4120941

STD: RemoteField::getModifiers does not support all modifiers.

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.3.0
    • 1.1.6
    • core-svc
    • beta
    • generic
    • generic



      Name: chT40241 Date: 03/18/98


      RemoteField::getModifiers() does not support all the modifiers that it should. I have examined the code and found the following are not supported, but should be because the class RemoteField represents both methods as well as data fields.
       M_SYNCHRONIZED
       M_NATIVE
       M_ABSTRACT

      Here is the suggested code which will fix this problem. It is to be added as the last statements in RemoteField::getModifiers()

      if ((access & M_SYNCHRONIZED) == M_SYNCHRONIZED)
         s = s.concat("synchronized ");
      if ((access & M_NATIVE) == M_NATIVE)
      s = s.concat("native ");
      if ((access & M_ABSTRACT) == M_ABSTRACT)
      s = s.concat("abstract ");

      ======================================================================

            ghirschsunw Gordon Hirsch (Inactive)
            chickeysunw Chuck Hickey (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: