This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 184338 - Error generated by annotation processor shown at line 1
Summary: Error generated by annotation processor shown at line 1
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: PC Linux
: P4 normal with 1 vote (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-16 09:26 UTC by aldobrucale
Modified: 2016-07-07 14:57 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description aldobrucale 2010-04-16 09:26:17 UTC
The following code does not compile because an unreported java.io.IOException is thrown by the synthetic call to is.close(), 


public void method() throws FileNotFoundException {
    @Cleanup
    final InputStream is = new FileInputStream("filename");
}

The ide shows an error badge at line 1 of the source file.
Comment 1 aldobrucale 2010-04-16 09:26:47 UTC
@Cleanup is actually @lombok.Cleanup
Comment 2 Jan Lahoda 2010-04-16 12:03:22 UTC
The close method invocation has position -1 (which is generally used to mark things that are "synthetic").
Comment 3 Martin Balin 2016-07-07 07:18:40 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss