#2668·plantuml

Metaclass with subclass causes error

Author: mforkelCreated Apr 26, 2026Updated Aug 23, 2026
Labelst:info-neededfor-claude

I generate class diagrams for Python code that includes metaclasses. If I use a metaclass element for a metaclass M that has a (metaclass) subclass S, plantuml reports an error for the line containing the closing bracket of M's declaration:

Error line 475 in file: classes.puml
Some diagram description contains errors

The error does not occur, if I use a class element for M or if I specify a different superclass for S.

Tested with PlantUml in Debian Bookworm:

$ java -jar bin/plantuml.jar --version
PlantUML version 1.2026.2 / bb8550d [2026-02-27 17:45:29 UTC]
(GPL source distribution)

Build Version: 1.2026.2
Git Commit: bb8550d
Compile Time: 2026-02-27 17:45:29 UTC

Java Runtime: OpenJDK Runtime Environment
JVM: OpenJDK 64-Bit Server VM
Default Encoding: UTF-8
Language: de
Country: DE
 
PLANTUML_LIMIT_SIZE: 4096

GraphViz: dot - graphviz version 2.43.0 (0)
Installation seems OK. File generation OK