We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
object AccumuloTest { def main(args: Array[String]): Unit = { //无法引用 父类静态方法 Tjava.sayHello() Tjava.TJavaSayHello() //无法引用继承的静态变量 val v = Tjava.v1 val v1 = new Tjava Test1.MysayHello() //无法引用 父类静态方法 Test1.sayHello() } } public class Father { public static String v1 = "haha"; public static void sayHello() { System.out.println("hello"); } } object Test1 extends Test2{ def MysayHello(): Unit = { System.out.println("hello") } } public class Test2 { public static void sayHello(){ System.out.println("hello"); } } //object 不支持 继承object object Test3 extends Test4{ def MysayHello(): Unit = { System.out.println("hello") } } object Test4 { def sayHello(): Unit = { System.out.println("hello") } } public class Tjava extends Father{ public static void TJavaSayHello(){ System.out.println("tjava hello"); } public static void main(String[] args) { Tjava.sayHello(); Tjava.TJavaSayHello(); } }
problem.txt
The text was updated successfully, but these errors were encountered:
Possibly a duplicate of #11226?
Sorry, something went wrong.
which is itself a duplicate of #9272. I've commented on 9272 with my own current take on this. let's continue any further discussion there.
@MrDLontheway 请问现在有好的解决方案吗,我最近也遇到这个问题/(ㄒoㄒ)/~~
@hilcy please use #9272
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
problem.txt
The text was updated successfully, but these errors were encountered: