git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [EGIT PATCH] Provide a more JavaBeans-style 'getName' accessor for the id Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>

From
Alex Blewitt <alex.blewitt@gmail.com>
Date
Aug 11, 2009, 12:53 UTC
Message-ID
<8ACC6C83-75FD-477C-9083-96CA426FC069@gmail.com>
In-Reply-To
<20090810205907.GY1033@spearce.org>
On 10 Aug 2009, at 21:59, "Shawn O." <spearce@spearce.org> wrote:
Show 18 quoted lines
> Alex Blewitt <alex.blewitt@gmail.com> wrote:
>> That patch was originally mailed on the 11th May. Has it taken  
>> until now
>> to notice the problem, or was the other method added in the last  
>> month or
>> so? If I'm to blame, I apologise but didn't note any compile time  
>> issues
>> at the time.
>
> Arrgh, you are right, I lost this patch in my inbox, and in the
> interm we applied new features to RevTag which added getName there. .
>
>>> ./org/spearce/jgit/revwalk/RevTag.java:206: getName() in
>>> org.spearce.jgit.revwalk.RevTag cannot override getName() in
>>> org.spearce.jgit.lib.AnyObjectId; overridden method is final
>
> I can't apply this patch because getName() on RevTag is already
> defined with a different meaning.  :-(

That sounds dangerous. We now have a .name() and a .getName() with different semantics. Can we not change the RevTag method name to something else so that we dont have an inconsistency?

>
Alex 
Previous: Shawn O. PearceNext: Shawn O. Pearce
Message 7 of 9 in “Provide a more JavaBeans-style 'getName' accessor for the id Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>”
  1. Provide a more JavaBeans-style 'getName' accessor for the id Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>Alex Blewitt, May 9, 2009
  2. Shawn O. PearceMay 10, 2009
  3. Shawn O. PearceAug 10, 2009
  4. Alex BlewittAug 10, 2009
  5. Alex BlewittAug 10, 2009
  6. Shawn O. PearceAug 10, 2009
  7. Alex BlewittAug 11, 2009
  8. Shawn O. PearceAug 12, 2009
  9. Robin RosenbergAug 12, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.