This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 121444 - Missing methods
Summary: Missing methods
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: Macintosh Mac OS X
: P3 blocker (vote)
Assignee: Rastislav Komara
URL:
Keywords: API, API_REVIEW_FAST
Depends on:
Blocks:
 
Reported: 2007-11-08 10:28 UTC by egiva
Modified: 2009-11-09 14:15 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Patch file (2.54 KB, text/plain)
2009-05-05 14:01 UTC, Rastislav Komara
Details
TreeMaker patch (2.17 KB, text/plain)
2009-05-06 12:15 UTC, Rastislav Komara
Details

Note You need to log in before you can comment on or make changes to this bug.
Description egiva 2007-11-08 10:28:47 UTC
I have VariableTree which represents parameter with vararg - "foo(String... a)". How could I check if it is vararg from
the VariableTree and how can I add "..." to the parameter type? Now I can obtain only "[]" type modifier, which is
correct from the bytecode view, but not from the source code. Missing methods to accomplish this task in Beta 2
Comment 1 egiva 2007-11-19 12:28:57 UTC
Target milestone was changed to "dev" - does it means to be fixed soon? Or perhaps already is fixed?
Comment 2 Jiri Prox 2008-04-11 00:53:08 UTC
moving opened issues from TM <= 6.1 to TM=Dev
Comment 3 Jan Becicka 2008-08-11 15:24:26 UTC
You can use Trees.getElement().isVarArgs, isn't it?
Comment 4 egiva 2008-08-12 15:20:03 UTC
I am bit out of this issues, but if I correctly remember "getElement" requires a TreePath and, if I am creating TreePath
from the Tree which is created in memory, but doesn't exist in file - I will get null TreePath, right? It is not good
approach then...
Another part of problem is that I can't add "..." to parameter.
Comment 5 Jan Becicka 2008-11-12 08:02:37 UTC
Is this issue still blocker for you? If yes, please reopen. Thanks.
Comment 6 egiva 2008-11-12 12:36:29 UTC
Yes, it is blocker, because I haven't workaround for this issue yet.
Comment 7 Rastislav Komara 2009-02-03 10:55:39 UTC
Overtake.
Comment 8 Rastislav Komara 2009-05-05 14:00:35 UTC
Changed API of TreeMaker which enables creating of methods with variable arguments length.
Comment 9 Rastislav Komara 2009-05-05 14:01:26 UTC
Created attachment 81552 [details]
Patch file
Comment 10 Rastislav Komara 2009-05-06 12:15:02 UTC
Created attachment 81634 [details]
TreeMaker patch
Comment 11 Quality Engineering 2009-05-08 07:45:01 UTC
Integrated into 'main-golden', will be available in build *200905080201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/01896d48c99a
User: Rastislav Komara <moonko@netbeans.org>
Log: Issue #121444: Missing methods
Comment 12 David Strupl 2009-11-09 14:15:51 UTC
Seems like this one was actually fixed by Rasta.