Skip to content

Groovy interpreter processes import statements inside multiline strings #7411

Open

Description

@nroslavker-schon

Groovy interpreter processes import statements inside multiline strings.
For example executing below will result in an error:
def sourceStr="""
import com.xyz
"""
7:03
r-Scheduler-Serial-1 | .c.ConsoleServiceGrpcImpl | Error running script: java.lang.RuntimeException: Attempting to import a path that does not exist: import com.xyz;

Activity

  1. added
    bug
    on Nov 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugtriage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions