-
-
Notifications
You must be signed in to change notification settings - Fork 342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Build model with source code from stdlib #5290
Comments
The problem occurs when we are traversing The binding that trigger the error: ParametrizedTypeBinding private static class ReflectionData<T>
extends NULL TYPENULL SUPERINTERFACES
enclosing type : Unresolved type java.lang.ClassNULL FIELDSNULL METHODS The call of
will call the binding 's enclosing type which is unresolved and this will throw an error here:
|
Hey, The core problem of all code to reproduce is GPL licensed and the review @I-Al-Istannen was against merging it. You are welcome to discuss with him. I asked the JDT team if they are aware of other code to create such a bind,eclipse-jdt/eclipse.jdt.core#1186. These bindings are the last resort of JDT and probably a JDT bug. We haven't seen one in 15+ years. |
The JDT team answered me:
In my understanding we should never get these bindings but in some special cases. Looks like |
Describe the bug
I am trying to analyze the source code from the stdlib. Therefore I wrote an interface to retrieve the source code from the stdlib and add the content of the classes to the spoon launcher. It works for some classes e.g.
Object
but for some classes e.g.Class
it seems to not work.Source code you are trying to analyze/transform
Source code for your Spoon processing
Actual output
Expected output
Spoon Version
10.3.0
JVM Version
17.0.6
What operating system are you using?
Windows 11
The text was updated successfully, but these errors were encountered: