Compiling 1 source file to /home/pfarrell/sandbox/bbook/trunk/fnfapp/build/generated/classes
/home/pfarrell/sandbox/bbook/trunk/fnfapp/build/generated/src/org/apache/jsp/WEB_002dINF/pages/test_jsp.java:16: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.Vector
This is triggered by code that does an include, specifically:
The compiler converts this line to
Is there a clean way to suppress this warning?
But, if it matters to you, whatever an answer might be is sure to be container-specific. I'm guessing Tomcat?
Basically, you'll need to find out how to tell Glassfish (or Netbeans) to suppress the compiler warnings during its translate/compile cycle for the JSPs.
Bear Bibeault wrote:Basically, you'll need to find out how to tell Glassfish (or Netbeans) to suppress the compiler warnings during its translate/compile cycle for the JSPs.
Well, what I really want is to ignore this one, since I'm not generating the Java from the JSP, but leave on the warnings for dumb things that I do.
Of course, a dream IDE would warn me as I typed the errors.
Any problems will result in blatant errors, not warnings.
If you have a budget, you might want to check out IntelliJ IDEA as an alternative to Netbeans. Its JSP inspections aren't bad.