Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-5060820

Generification conflict: Properties vs. javax.naming.directory.InitialDirContext

    XMLWordPrintable

Details

    • b59
    • generic
    • solaris_10

    Description

      There are new java build failures introduced on s10_60. The same CDE source code built on s10_58 were fine. We are using default java from s10_60.

      % java -version
      java version "1.5.0-beta2"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta2-b51a)
      Java HotSpot(TM) Client VM (build 1.5.0-beta2-b51a, mixed mode, sharing)


      The following are the build errors:
      /net/tostada/export/cde-re/release/build3/CDE1.6-build/sparc/opt/build/jdksrc/pd
      a/sunw/jdt/cal/util/GetId.java:80: cannot find symbol
      symbol : constructor InitialDirContext(java.util.Properties)
      location: class javax.naming.directory.InitialDirContext
                  DirContext ctx = new InitialDirContext(jndiEnv);
                                   ^
      /net/tostada/export/cde-re/release/build3/CDE1.6-build/sparc/opt/build/jdksrc/pd
      a/sunw/jdt/cal/rpc/xdr_dg.java:88: warning: [deprecation] stop() in
      java.lang.Thread has been deprecated
                      reader.stop();
                            ^
      /net/tostada/export/cde-re/release/build3/CDE1.6-build/sparc/opt/build/jdksrc/pd
      a/sunw/jdt/cal/rpc/xdr_dg.java:271: warning: [deprecation] stop() in
      java.lang.Thread has been deprecated
                      stop();
                      ^
      Note:
      /net/tostada/export/cde-re/release/build3/CDE1.6-build/sparc/opt/build/jdksrc/pd
      a/sunw/jdt/cal/rpc/PMapSvc.java uses unchecked or unsafe operations.
      Note: Recompile with -Xlint:unchecked for details.
      1 error
      3 warnings
      *** Error code 1

      Attachments

        Issue Links

          Activity

            People

              mr Mark Reinhold
              aluong Ada Luong
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: