The specs for java.awt.MenuComponent do not describe behaviour of
its methods when null is passed as a parameter. They are also silent
about what are the initial attributes values of just created MenuComponent.
For example, Reference Implementation for eJava returns null as a name of
a MenuBar (direct ancestor of MenuComponent) if the setName method hasn't
been previously called. On the other hand, all standard JDKs return non-null
value starting with "menubar" in this case. It is not possible to infer
from specs which behaviour is expected.
its methods when null is passed as a parameter. They are also silent
about what are the initial attributes values of just created MenuComponent.
For example, Reference Implementation for eJava returns null as a name of
a MenuBar (direct ancestor of MenuComponent) if the setName method hasn't
been previously called. On the other hand, all standard JDKs return non-null
value starting with "menubar" in this case. It is not possible to infer
from specs which behaviour is expected.