Created
February 16, 2018 20:46
-
-
Save johnynek/857579dfd3ce0b1c437826f496448e16 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
package test; | |
class A { | |
} |
This file contains hidden or 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
package test; | |
class B { | |
private A myA; | |
public B(A a) { | |
myA = a; | |
} | |
} |
This file contains hidden or 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
java_library( | |
name = "a", | |
srcs = ["A.java"]) | |
java_library( | |
name = "b", | |
srcs = ["B.java"], | |
deps = [":a"]) | |
java_library( | |
name = "c", | |
srcs = ["C.java"], | |
deps = [":b"]) #to fix make this ":b", ":a" |
This file contains hidden or 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
package test; | |
class C { | |
private B myB; | |
//public C(B b, A a) { | |
public C(B b) { // if you depend on A without declaring it the build fails. | |
myB = b; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment