Hello S.,
1/ mix class interface and component
In order to mix class interface and component or deployment element, you must use the 'allow_mixing' keyword, then we observe the expected result:
@startuml
allow_mixing
interface "Last\ninterface" as Interf4 {
String data
void methods()
}
component C
database D
C -> Interf4
Interf4 -> D
@enduml
[See on PlantUML online server]
2/ mix component interface and component
In order to mix interface and component or deployment element, you must use the long description with '[', ']', or long string, then we observe the expected result:
@startuml
interface Interf4 [
Last interface
String data
void methods()
]
component C
database D
C -> Interf4
Interf4 -> D
@enduml
If that can help,
Regards,
Th.