Personal tools
You are here: Home Developer Software Plugins JDeveloper Exception Not Handled Work Around

JDeveloper Exception Not Handled Work Around

— filed under: ,

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.


JDeveloper Navigator

JDeveloper Plugin Sample Code


Workaround

Start JDeveloper
Open Tools -> Preferences
Open up the Audit -> Profiles screen

JDeveloper Properties Audit Profiles


Create a new Code Assist Rule based upon the default Code Assist Rule.
Expand the Java Source Errors Tree and uncheck Exceptions Unhandled.

JDeveloper Properties Audit Profiles - Exceptions Unhandled


Click on Save As and save the profile as “Foundation Code Assist Rules”

JDeveloper Properties Audit Profiles - Foundation Code Assist Rules


Select Audit

JDeveloper Properties Audit


Change the Code Assist Profile to “Foundation Code Assist Rules”

JDeveloper Properties Audit - Foundation Code Assist Rules

Document Actions