Added setting position of generated nodes in javac's @Synchronized as a 'pilot' to see if we cause any problems with this approach. It does generate nicer error messages!

Example: Using @Synchronized with named lock on a static method, naming a non-existent or instance lock. That used to error on line -1.
This commit is contained in:
Reinier Zwitserloot committed 2012-07-16 22:51:56 +02:00
1 parent b1877a77be
commit fe4985e212
3 files changed
+28 -8

No files matched your search

@@ -1 +1 @@
-1:-1 ERROR non-static variable read cannot be referenced from a static context
5:9 ERROR non-static variable read cannot be referenced from a static context