Bug 484845 - [java reverse] Papyrus fails to reverse try-with-resource constructor
Summary: [java reverse] Papyrus fails to reverse try-with-resource constructor
Status: UNCONFIRMED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Designer (show other bugs)
Version: 1.1.3   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 489844
Blocks:
  Show dependency tree
 
Reported: 2015-12-23 06:24 EST by Michele Milesi CLA
Modified: 2017-08-02 13:00 EDT (History)
2 users (show)

See Also:


Attachments
Error log (8.92 KB, text/x-log)
2015-12-23 06:24 EST, Michele Milesi CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michele Milesi CLA 2015-12-23 06:24:35 EST
Created attachment 258871 [details]
Error log

When reversing a source file with a try-with-resource constructor we obtain the following error

japa.parser.ParseException: Encountered " "(" "( "" at line 305, column 37.
Was expecting:
    "{" ...

At line 305 we have

try (ThrottlingQueue queue = throttlingManager.getQueue(channel, operationName, redMode)) {

I attach you will find the error log
Comment 1 Camille Letavernier CLA 2016-01-04 12:22:22 EST
This component has been developed for Java 5 (Maybe Java 6) and not maintained since then

So it should fail with any Java > 6 construct
Comment 2 Florian Noyrit CLA 2017-08-02 11:31:16 EDT
Not maintained.
Comment 3 Florian Noyrit CLA 2017-08-02 13:00:36 EDT
Set appropriate component