Bug 284820 - Generate Element Comment after line comment makes bad result
Summary: Generate Element Comment after line comment makes bad result
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP Core CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2009-07-28 01:49 EDT by Toshihiro Izumi CLA
Modified: 2020-05-14 11:17 EDT (History)
2 users (show)

See Also:
ganoro: iplog+


Attachments
patch (861 bytes, patch)
2009-07-28 01:49 EDT, Toshihiro Izumi CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toshihiro Izumi CLA 2009-07-28 01:49:52 EDT
Created attachment 142731 [details]
patch

Steps to reproduce:
1. Create php file and edit it as follows.
<?php
// test
$w = new ArrayObject();

2. Do "Generate Element Comment" with $w.
Result:
<?php
// test
/**
 * @var unknown_type
 */
$w = new ArrayObject();

Without line comment, "Generate Element Comment" works fine.
Result:
<?php
/* @var ArrayObject */
$w = new ArrayObject();

(incorrect @var syntax is another issue)
Comment 1 Roy Ganor CLA 2009-07-28 05:41:58 EDT
committed to HEAD,

contributed by Toshihiro,
Comment 2 Gadi Goldbarg CLA 2010-01-19 04:39:02 EST
Te-tested in PDT 2.2.0 - verified fixed.

Kalin Yanev
kalin.a@zend.com