Uploaded image for project: 'Apache Cassandra'
  1. Apache Cassandra
  2. CASSANDRA-17230

Trunk warnings: Unsafe is internal proprietary API and may be removed in a future release

    XMLWordPrintableJSON

Details

    • Task
    • Status: Open
    • Low
    • Resolution: Unresolved
    • 5.x
    • Build
    • None
    • Code Clarity
    • Low Hanging Fruit
    • All
    • None

    Description

      We see on trunk the following warnings:

       

      _simulator-bootstrap_build:
          [mkdir] Created dir: /Users/ekaterina.dimitri/IdeaProjects/april/cassandra/build/classes/simulator-bootstrap
          [javac] Compiling 1 source file to /Users/ekaterina.dimitri/IdeaProjects/april/cassandra/build/classes/simulator-bootstrap
          [javac] /Users/ekaterina.dimitri/IdeaProjects/april/cassandra/test/simulator/bootstrap/org/apache/cassandra/simulator/systems/InterceptorOfSystemMethods.java:29: warning: Unsafe is internal proprietary API and may be removed in a future release
          [javac] import sun.misc.Unsafe;
          [javac]                ^
          [javac] /Users/ekaterina.dimitri/IdeaProjects/april/cassandra/test/simulator/bootstrap/org/apache/cassandra/simulator/systems/InterceptorOfSystemMethods.java:192: warning: Unsafe is internal proprietary API and may be removed in a future release
          [javac]         public static Unsafe getUnsafe()
          [javac]                       ^
          [javac] /Users/ekaterina.dimitri/IdeaProjects/april/cassandra/test/simulator/bootstrap/org/apache/cassandra/simulator/systems/InterceptorOfSystemMethods.java:196: warning: Unsafe is internal proprietary API and may be removed in a future release
          [javac]                 Field field = Unsafe.class.getDeclaredField("theUnsafe");
          [javac]                               ^
          [javac] /Users/ekaterina.dimitri/IdeaProjects/april/cassandra/test/simulator/bootstrap/org/apache/cassandra/simulator/systems/InterceptorOfSystemMethods.java:198: warning: Unsafe is internal proprietary API and may be removed in a future release
          [javac]                 return (Unsafe) field.get(null);
          [javac]                         ^
       
      
          [javac] 4 warnings
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            edimitrova Ekaterina Dimitrova
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: