File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed
src/main/groovy/com/admc/gradle Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -891,7 +891,12 @@ Failed to resolve DomainExtensionObject ref though succeeded earlier:
891891 sb. append(it). append(' \n ' )
892892 pText = sb + ' \u 0003=\n '
893893 workPs. clear()
894- workPs. load(new StringReader (pText))
894+ try {
895+ workPs. load(new StringReader (pText))
896+ } catch (MissingMethodException mme) {
897+ // Hack is workaround for pre-1.6 Java
898+ workPs. load(new StringBufferInputStream (pText))
899+ }
895900 tmpList = workPs. propertyNames(). toList()
896901 if (tmpList. size() < 2 ) return
897902 assert tmpList. size() == 2 :
@@ -909,8 +914,14 @@ Failed to resolve DomainExtensionObject ref though succeeded earlier:
909914 firstDelim = ' \0 '
910915 for (i in (firstNonWs + 1 ) .. sb. length()) {
911916 workPs. clear()
912- workPs. load(new StringReader (sb. substring(firstNonWs, i)
913- + ' \u 0003\n ' ))
917+ try {
918+ workPs. load(new StringReader (sb. substring(firstNonWs, i)
919+ + ' \u 0003\n ' ))
920+ } catch (MissingMethodException mme) {
921+ // Hack is workaround for pre-1.6 Java
922+ workPs. load(new StringBufferInputStream (sb. substring(firstNonWs, i)
923+ + ' \u 0003\n ' ))
924+ }
914925 if (workPs. size() == 1
915926 && workPs. getProperty(workPs. propertyNames()
916927 .toList(). first()) == ' \u 0003' ) {
You can’t perform that action at this time.
0 commit comments