JavaImport: Convert Java specific notation '...' into a language independent array definition
ClosedPublic

Authored by okellogg on Nov 22 2018, 7:25 PM.

Details

Summary

In JavaImport::fillSource(), replace method vararg notation "..." occurring in the input word by "[]".
CCBUG: 401290

Diff Detail

Repository
R139 Umbrello
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
okellogg created this revision.Nov 22 2018, 7:25 PM
Restricted Application added a project: Umbrello. · View Herald TranscriptNov 22 2018, 7:25 PM
Restricted Application added a subscriber: umbrello-devel. · View Herald Transcript
okellogg requested review of this revision.Nov 22 2018, 7:25 PM

The title of this commit is inappropriate, because the patch does not fix the initially reported regression, but converts the java specific notation '...' into a language independent array definition.

BUG:292239

This patch does not close the actual reported problem, therefore
CCBUG:292239

Alternatively, an independent bug report could be submitted for this subproblem so that it appears as a separate entry in the list of fixed bugs for the next release 2.27 https://umbrello.kde.org/developers.php#changelog
In this case, FIXED-IN: should be added to the keywords:

BUG:XXX
FIXED-IN:2.26.90 (KDE Applications 18.11.90)

BTW: bug fixes without any translation related changes could be applied to the stable branch, which is currently Applications/18.12

okellogg retitled this revision from Fix regression on import of Java classes with methods using varargs to JavaImport: Convert Java specific notation '...' into a language independent array definition.Nov 23 2018, 5:14 PM
okellogg edited the summary of this revision. (Show Details)
okellogg added a comment.EditedNov 25 2018, 10:35 AM

I changed the title as you suggest.
From my point of view, the whole point of bug 401290 was to get rid of the annoying dialogs popping up.
So I would argue that this does in fact fix the issue, even in a way that has an improvement in portability as a side effect.

BTW: bug fixes without any translation related changes could be applied to the stable branch, which is currently Applications/18.12

Sure, go ahead. The patch applies cleanly there too.

habacker accepted this revision.Nov 25 2018, 5:17 PM

Another view is that this patch bypasses the originally described error (the dialog box).

This revision is now accepted and ready to land.Nov 25 2018, 5:17 PM

With https://bugs.kde.org/show_bug.cgi?id=401290#c7 I can confirm, that this the related bug is really fixed by this patch.

This revision was automatically updated to reflect the committed changes.