・・・って、うっかりメソッドの宣言部に書いたら普通にコンパイルできました。
オーバーライド禁止を表す"final"を、オーバーライドという概念のないクラスメソッドに付けてもコンパイラに怒られないんですね。
付ける意味も全くないし、動作もまったく変わらないのですが(笑)
Java言語仕様 8.4.3.2 static Methods、8.4.3.3 final Methodsのどちらにも、クラスメソッドにfinalを付けるとどうなる、という規定はありませんね。
http://java.sun.com/docs/books/jls/third_edition/html/classes.html#8.4.3.2
長いことJavaに関わっていますが、今さら気づきました。
Azure AI Agent Service Now in Public Preview for Developers in AI Foundry
SDK and Portal
-
Introducing the Azure AI Agent Service: a groundbreaking platform that
empowers developers to design, deploy, and manage intelligent AI agents
seamlessly...
8 hours ago
0 コメント:
Post a Comment