Compiled but with two Notes

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shana07
    Contributor
    • Jan 2007
    • 280

    #1

    Compiled but with two Notes

    Hi, I get these Notes after compiled a java program
    Code:
    D:\Assignments\>javac Image.java
    Note: Image.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    What is the reason could be?
    what is -Xlint?
    Please help... thank you.
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by shana07
    Hi, I get these Notes after compiled a java program
    Code:
    D:\Assignments\>javac Image.java
    Note: Image.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    What is the reason could be?
    what is -Xlint?
    Please help... thank you.
    This is being discussed here

    Comment

    • shana07
      Contributor
      • Jan 2007
      • 280

      #3
      thank you. I compile it again with -Xlint
      and listing with few warning messages such: [path] & [unchecked].

      Comment

      • r035198x
        MVP
        • Sep 2006
        • 13225

        #4
        Originally posted by shana07
        thank you. I compile it again with -Xlint
        and listing with few warning messages such: [path] & [unchecked].
        Good now remove the deprecated code and make it work without the warning.

        Comment

        • shana07
          Contributor
          • Jan 2007
          • 280

          #5
          Originally posted by r035198x
          Good now remove the deprecated code and make it work without the warning.
          Yes, solved! thanks to you & horace (from the provided link).

          Comment

          Working...