We've just gotten feedback on the security of the J2ME app we delivered, and it seems that Veracode is taking getClass().getResourceAsStream(), called in Resources.Open("/res/resfile.res") as a security flaw.
http://www.cvedetails.com/cwe-details/73/External-Control-of-File-Name-or-Path.html
The problem here is that the resource is not being given by user input but is called in the way I have shown here. However, for some reason, the company we're dealing with won't accept false positives.
Is there any alternate way of loading the resource so that it doesn't use getResourceAsStream and passes the Veracode test?