UML 1.4 NO IDEA Avatar
  1. OMG Issue

UML14 — UML 2 Super / Interfaces / Cannot nest classes in interfaces

  • Key: UML14-356
  • Legacy Issue Number: 6399
  • Status: closed  
  • Source: Simula Research Laboratory ( Dr. Bran Selic)
  • Summary:

    The Java spec says that it is legal to have Java Classes nested in Interfaces:

    9.1.3 Interface Body and Member Declarations
    The body of an interface may declare members of the interface:

    InterfaceBody:

    { InterfaceMemberDeclarationsopt }

    InterfaceMemberDeclarations:
    InterfaceMemberDeclaration
    InterfaceMemberDeclarations InterfaceMemberDeclaration

    InterfaceMemberDeclaration:
    ConstantDeclaration
    AbstractMethodDeclaration
    ClassDeclaration
    InterfaceDeclaration
    ;

    But UML2 Interfaces can only store nested Interfaces. This makes it impossible to model common Java programs with UML

  • Reported: UML 1.5 — Fri, 31 Oct 2003 05:00 GMT
  • Disposition: Resolved — UML 1.4.2
  • Disposition Summary:

    see above

  • Updated: Fri, 6 Mar 2015 20:58 GMT