Skip to content
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

May I get source code or only modified class? #25

Open
irbistwo opened this issue May 16, 2022 · 0 comments
Open

May I get source code or only modified class? #25

irbistwo opened this issue May 16, 2022 · 0 comments

Comments

@irbistwo
Copy link

irbistwo commented May 16, 2022

May I get source code on classwriter?
For example of HttpRequestParser(Undertow) ..its generated to HttpRequestParser$$generated.class(using org.jboss.classfilewriter)
I was researching how Undertow working /Get dependences/Up on IDE(JDeveloper) ,
wanted trace (debug )way request /response, but discovered what way go out in HttpRequestParser$$generayed.class.
This one is a generated tricky, complicate process, of «parser-generator»(io.undertow.annotationprocessor use
org.jboss.classfilewriter
https://github.com/undertow-io/undertow/tree/master/parser-generator/src/main/java/io/undertow/annotationprocessor
)
and I did not found
HttpRequestParser$$generayed.java in annotation-source target.
I was writed
com.sun.tools.javac.Main.main (new String[] {"-proc:only", "-processor", "io.undertow.annotationprocessor.HttpParserAnnotationProcessor", "HttpRequestParser.java"});

Append code to HttpParserAnnotationProcessor(process)
JavaFileObject jfo = filer.createSourceFile(classElement.getQualifiedName() + "Info");

But I get only class file and empty source file;
How I can get source code for annotation? May I modyfy code to get source?(or jboss-classfilefriter working only class files?)

(On undertow within portal does not exist issue
Writed on https://issues.redhat.com/projects/UNDERTOW
No answer.
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant