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.

classfileResource not set for superclasses

See original GitHub issue

i use Classgraph for JDK classes. i have the following problem if a subclass is scanned first and the parent class after the superclass entry will have classfileResource == null as of io.github.classgraph.ClassInfo.getOrCreateClassInfo(String, int, Map<String, ClassInfo>)

my expectation would be that io.github.classgraph.ClassInfo.addScannedClass(String, int, boolean, Map<String, ClassInfo>, ClasspathElement, Resource) corrects this in the else branch, (classInfo.classfileResource = classfileResource;) but it does not

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:27 (27 by maintainers)

github_iconTop GitHub Comments

1reaction
cdietrichcommented, May 12, 2019

nice. many thanks

1reaction
cdietrichcommented, May 11, 2019

Yes

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't access protected member of superclass from same ...
The scope for an anonymous inner class is only the point where it is defined. So it will not have access to inherited...
Read more >
Example usage for org.eclipse.jdt.core.compiler ... - Java2s.com
Object only if the super class is not missing if (objectIndex > -1 && (!this. ... else { IResource file = classFile.resource(); binaryType...
Read more >
org.eclipse.jdt.internal.core.hierarchy.HierarchyBuilder java ...
Returns a handle for the given generic type or null if not found. getType · lookupBinaryHandle. Looks up and returns a handle for...
Read more >
Java Examples for org.codehaus.groovy.runtime ... - Javatips.net
Header last = null; for (Iterator iter = superClasses.iterator(); iter. ... This method is invoked by Groovy when a method that's not defined...
Read more >
Resource assignment with service classes - IBM
You can create different service superclasses to provide the execution ... to run activities that you do not assign to an explicitly defined...
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