-
Notifications
You must be signed in to change notification settings - Fork 40
GRAPH-775 annotation processing fix #732
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
Changes from all commits
526316c
f8f1dc0
e4128b7
15ff2cd
7ee19e2
a152862
115d6ce
f8f12f6
d386089
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -83,7 +83,9 @@ public void finished(TaskEvent e) { | |
| // exception, it just prints the location with an empty message. | ||
| private void reportException(Throwable exception, TaskEvent e) { | ||
| ByteArrayOutputStream baos = new ByteArrayOutputStream(); | ||
| exception.printStackTrace(new PrintWriter(baos)); | ||
| PrintWriter pw = new PrintWriter(baos); | ||
| exception.printStackTrace(pw); | ||
| pw.close(); | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This line is responsible for not seeing the root cause error message. I've seen this type of empty message multiple times in customer reports:
🤞 going forward we'll be able to get more meaningful error reports. |
||
| reporter.error(baos.toString(), e.getCompilationUnit(), e.getCompilationUnit()); | ||
| } | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| package minimized; | ||
|
|
||
|
|
||
| @interface Bar { | ||
| double value(); | ||
| } | ||
|
|
||
| @interface BarB { | ||
| boolean value(); | ||
| } | ||
|
|
||
| interface Foo { | ||
| @Bar(-1d) | ||
| double test(); | ||
|
|
||
| @Bar(~5) | ||
| @SuppressWarnings(value = "unchecked") | ||
| double test2(); | ||
|
|
||
| @BarB(!true) | ||
| double test3(); | ||
| } | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| package minimized; | ||
|
|
||
|
|
||
| @interface Bar { | ||
| // ^^^ definition semanticdb maven . . minimized/Bar# | ||
| // display_name Bar | ||
| // signature_documentation java @interface Bar | ||
| // kind Interface | ||
| // relationship is_implementation semanticdb maven jdk 11 java/lang/annotation/Annotation# | ||
| double value(); | ||
| } | ||
|
|
||
| @interface BarB { | ||
| // ^^^^ definition semanticdb maven . . minimized/BarB# | ||
| // display_name BarB | ||
| // signature_documentation java @interface BarB | ||
| // kind Interface | ||
| // relationship is_implementation semanticdb maven jdk 11 java/lang/annotation/Annotation# | ||
| boolean value(); | ||
| } | ||
|
|
||
| interface Foo { | ||
| // ^^^ definition semanticdb maven . . minimized/Foo# | ||
| // display_name Foo | ||
| // signature_documentation java interface Foo | ||
| // kind Interface | ||
| @Bar(-1d) | ||
| // ^^^ reference semanticdb maven . . minimized/Bar# | ||
| double test(); | ||
| // ^^^^ definition semanticdb maven . . minimized/Foo#test(). | ||
| // display_name test | ||
| // signature_documentation java @Bar(-1.0)\npublic abstract double test() | ||
| // kind AbstractMethod | ||
|
|
||
| @Bar(~5) | ||
| // ^^^ reference semanticdb maven . . minimized/Bar# | ||
| @SuppressWarnings(value = "unchecked") | ||
| // ^^^^^^^^^^^^^^^^ reference semanticdb maven jdk 11 java/lang/SuppressWarnings# | ||
| // ^^^^^ reference semanticdb maven jdk 11 java/lang/SuppressWarnings#value(). | ||
| double test2(); | ||
| // ^^^^^ definition semanticdb maven . . minimized/Foo#test2(). | ||
| // display_name test2 | ||
| // signature_documentation java @Bar(~5)\n@SuppressWarnings("unchecked")\npublic abstract double test2() | ||
| // kind AbstractMethod | ||
|
|
||
| @BarB(!true) | ||
| // ^^^^ reference semanticdb maven . . minimized/BarB# | ||
| double test3(); | ||
| // ^^^^^ definition semanticdb maven . . minimized/Foo#test3(). | ||
| // display_name test3 | ||
| // signature_documentation java @BarB(!true)\npublic abstract double test3() | ||
| // kind AbstractMethod | ||
| } | ||
|
|
Uh oh!
There was an error while loading. Please reload this page.