# died: Undefined subroutine &main::com::pdfunit::filter::region::PageRegion # called at C:/.../pdfunit-typical-error_incorrect-use-of-constructor.t line 36.
To invoke the constructor of a Java class the function new
has to be used. Otherwise this error occurs.
lives_ok { my $ulX = 0; my $ulY = 0; my $width = 210; my $height = 50; my $headerRegion =PageRegion->($ulX, $ulY, $width, $height); # syntax error, missing 'new' } "typical error, incorrect constructor syntax";