This work around is because a JDeveloper Code Assist rules is looking for a try catch block somewhere, even through the code complies correctly using javac.
Problem
After creating a Foundation project using the Plugin the following generated code will create errors. These errors do not prevent the application from being compiled.
Workaround
Start JDeveloper
Open Tools -> Preferences
Open up the Audit -> Profiles screen
Create a new Code Assist Rule based upon the default Code Assist Rule.
Expand the Java Source Errors Tree and uncheck Exceptions Unhandled.
Click on Save As and save the profile as “Foundation Code Assist Rules”
Select Audit
Change the Code Assist Profile to “Foundation Code Assist Rules”