Skip to content

SVG12TextElementBridge performs cast without instanceof #3

Closed
@ghost

Description

Re: https://issues.apache.org/jira/browse/BATIK-1302

@carlosame notes:

The proper fix would be a major refactor: the code is asking for it, especially the CSSOM part (already did a small one there, but far from enough). Meanwhile a smaller fix would be of help.

The smaller, simple fix in the interim is to add an instanceof check to In SVG12TextElementBridge, around line 67, like:

if( ctx instanceof SVG12BridgeContext ) {
   ctx12 = (SVG12BridgeContext) ctx;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions