This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Scanning dependencies of target ceph-objectstore-tool | |
[ 85%] Building CXX object src/os/CMakeFiles/ceph-bluestore-tool.dir/bluestore/bluestore_tool.cc.o | |
[ 85%] Building CXX object src/tools/CMakeFiles/ceph-objectstore-tool.dir/ceph_objectstore_tool.cc.o | |
Traceback (most recent call last): | |
File "/home/myk/.A.proj.FirstBridge/fs/ceph/ceph/src/pybind/cephfs/setup.py", line 201, in <module> | |
os.path.join(os.path.dirname(__file__), "..", "rados") | |
File "/usr/lib/python3/dist-packages/Cython/Build/Dependencies.py", line 899, in cythonize | |
ctx = c_options.create_context() | |
File "/usr/lib/python3/dist-packages/Cython/Compiler/Main.py", line 590, in create_context | |
self.cplus, self.language_level, options=self) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
demo | |
*.swp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Protected { | |
public static void main(String[] args) throws CloneNotSupportedException { | |
Car myCar1 = new Car(12,125); | |
System.out.println(myCar1); | |
// int i = myCar1.speedMax; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Clone { | |
public static void main(String[] args) throws CloneNotSupportedException { | |
Car myCar1 = new Car(12,125); | |
System.out.println(myCar1); | |
// java.lang.CloneNotSupportedException: | |
Car myCar2 = (Car)myCar1.clone(); | |
System.out.println(myCar2); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Instanceof { | |
public static void main(String[] args) { | |
Car myCar = new SportCar(); | |
if(myCar instanceof SportCar) { | |
System.out.println("Sport Cat"); | |
} | |
if(myCar instanceof Truck) { | |
System.out.println("Truck"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Cast { | |
public static void main(String[] args) { | |
Object obj = "abcd"; | |
String str = (String) obj; | |
Object obj2 = new Integer(10); | |
// java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String | |
///String str2 = (String) obj2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
class LateBinding { | |
public static void main(String[] args) { | |
Car car3; | |
BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); | |
String carType = null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class EarlyBinding { | |
public static void main(String[] args) { | |
Car car3 = new SportCar(789, 23); | |
Car car4 = new Truck(); | |
car3.move(); | |
car4.move(); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Covariant { | |
public static void main(String[] args) { | |
SportCar car3 = new SportCar(789, 23); | |
car3.testSuper(); | |
} | |
} | |
class Car { | |
protected int speedMax = 100; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Super2 { | |
public static void main(String[] args) { | |
SportCar car3 = new SportCar(789, 23); | |
car3.testSuper(); | |
} | |
} | |
class Car { | |
protected int speedMax = 100; |