From 14c3f43c2c3ceeffb968121744281772dae6b2aa Mon Sep 17 00:00:00 2001 From: "Peter Fichtner (pfichtner)" Date: Thu, 24 Apr 2025 17:23:34 +0200 Subject: [PATCH] bugfix: name is an array so access element 0 or do Arrays#toString when concatinating --- .../lombok/installer/eclipse/EclipseProductLocation.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/installer/lombok/installer/eclipse/EclipseProductLocation.java b/src/installer/lombok/installer/eclipse/EclipseProductLocation.java index bf1dfb2925..b44e28f3d9 100644 --- a/src/installer/lombok/installer/eclipse/EclipseProductLocation.java +++ b/src/installer/lombok/installer/eclipse/EclipseProductLocation.java @@ -211,7 +211,7 @@ public void uninstall() throws UninstallException { fos.close(); } } catch (IOException e) { - throw new UninstallException("Cannot uninstall lombok from " + name + generateWriteErrorMessage(), e); + throw new UninstallException("Cannot uninstall lombok from " + getName() + generateWriteErrorMessage(), e); } } @@ -321,7 +321,7 @@ public String install() throws InstallException { "and use the 'what do I do' link, to manually install lombok. Also, tell us about this at:\n" + "http://groups.google.com/group/project-lombok - Thanks!\n\n[DEBUG INFO] " + e.getClass() + ": " + e.getMessage() + "\nBase: " + OsUtils.class.getResource("OsUtils.class"), e); } - throw new InstallException("I can't write to your " + descriptor.getProductName() + " directory at " + name + generateWriteErrorMessage(), e); + throw new InstallException("I can't write to your " + descriptor.getProductName() + " directory at " + getName() + generateWriteErrorMessage(), e); } } @@ -381,7 +381,7 @@ public String install() throws InstallException { } installSucceeded = true; } catch (IOException e) { - throw new InstallException("Cannot install lombok at " + name + generateWriteErrorMessage(), e); + throw new InstallException("Cannot install lombok at " + getName() + generateWriteErrorMessage(), e); } finally { if (!installSucceeded) try { lombokJar.delete();