question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Clarify whether method uses declaring class or current class

See original GitHub issue

Suppose I have the following:

public class ServiceA {
    @Retry
    public String doIt() { .. }
}
public class ServiceB extends ServiceA {
    @Retry
    public String again() { .. }
}
public class ServiceC extends ServiceA {
     @Override
     public String doIt() { .. }
}

Given that these are all fault tolerant methods, and I’m using instances of ServiceB and ServiceC, what configuration should be used for the method doIt in these cases? Do I use ServiceA as the configuration key or the actual impls?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
McFoggycommented, Nov 17, 2017

@johnament I guess it is #195 which relates to this issue

0reactions
johnamentcommented, Nov 14, 2017

@Emily-Jiang if you assign reviewers to a PR it’ll show up in inboxes. Which PR are you referring to?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Classes and Objects
A class declaration shows what an object will look like and what its available functions are. Again, implementation details aren't needed here.
Read more >
Controlling Access to Members of a Class - Oracle Help Center
Access level modifiers determine whether other classes can use a particular field or invoke a particular method. There are two levels of access...
Read more >
4. Methods Use Instance Variables: How Objects Behave
Every instance of a particular class has the same methods, but the methods can behave differently based on the value of the instance...
Read more >
Class basic syntax - The Modern JavaScript Tutorial
Creates a function named User , that becomes the result of the class declaration. The function code is taken from the constructor method...
Read more >
Classes and Objects in Java - GeeksforGeeks
Declaring Objects (Also called instantiating a class)​​ But the values of those attributes, i.e. the state are unique for each object. A single...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found