Skip to content

PerlLanguageProvider.executePerlCode terminates program #291

@dennis508

Description

@dennis508

A call to PerlLanguageProvider.executePerlCode runs successfully but does not return or throw an exception. Instead it terminates the program. (Sorry, I do not know how to identify the PerlOnJava revision. Changelog has v5.42.3)

public static void main(String[] args) {
        
    // exiftool -ver
    String newargs[] = new String[]{
        "/C/F/Projects/PerlOnJava/Image-ExifTool-13.50/exiftool",
        "-ver"};
    
    CompilerOptions parsedArgs = ArgumentParser.parseArguments(newargs);

    if (parsedArgs.code == null) {
        System.err.println("No code provided. Use -e <code> or specify a filename.");
        System.exit(1);
    }

    try {
        PerlLanguageProvider.executePerlCode(parsedArgs, true);////does not return.
            

Output:

JAVA_HOME="/usr/lib/jvm/java-21-openjdk-amd64"
cd /C/F/Projects/PerlOnJava; ./gradlew --configure-on-demand -x check run --debug-jvm
Configuration on demand is an incubating feature.
Reusing configuration cache.

Task :processResources UP-TO-DATE
Task :compileJava
Task :classes

Task :run
Listening for transport dt_socket at address: 5005
13.50

BUILD SUCCESSFUL in 1m 7s
3 actionable tasks: 2 executed, 1 up-to-date
Configuration cache entry reused.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions