Skip to content

Commit

Permalink
8280373: Update Xalan serializer / SystemIDResolver to align with JDK…
Browse files Browse the repository at this point in the history
…-8270492

Backport-of: c180070cb59b8e075376ae913c5db9a4ed868303
  • Loading branch information
gnu-andrew committed Apr 8, 2022
1 parent 5a66c8e commit aeeab3d
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/*
* reserved comment block
* DO NOT REMOVE OR ALTER!
* Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
*/
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
Expand Down Expand Up @@ -42,6 +41,8 @@
* used in com.sun.org.apache.xml.internal.serializer.
*
* @xsl.usage internal
*
* @LastModified: Jan 2022
*/
public final class SystemIDResolver
{
Expand Down Expand Up @@ -282,7 +283,7 @@ public static String getAbsoluteURI(String systemId)
public static String getAbsoluteURI(String urlString, String base)
throws TransformerException
{
if (base == null)
if (base == null || base.length() == 0)
return getAbsoluteURI(urlString);

String absoluteBase = getAbsoluteURI(base);
Expand Down

1 comment on commit aeeab3d

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.