forked from lihongbin/Javac-Research
-
Notifications
You must be signed in to change notification settings - Fork 1
/
疑问.java
50 lines (44 loc) · 1.39 KB
/
疑问.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
(1)
为什么
List<JCAnnotation> packageAnnotations = List.nil();
不用在 List.nil() 中上 List.<JCAnnotation>nil().
(2)
这两句
ParserTest(final /** @deprecated */ int i){}
ParserTest(/** @deprecated */ final int i){}
编译结果不一样,前一句提示已过时,后一句没有提示
(3)
LetExpr怎么来的????????
(4)
------------------------------------------------------------
test\enter\EnterTest.java:3: 警告:[deprecation] test.enter 中的 test.enter.Ente
rTestB 已过时
class EnterTest<TA extends EnterTestB,TB extends EnterTestC,TC extends EnterTest
B & EnterTestC,TD> {
^
test\enter\EnterTest.java:3: 警告:[deprecation] test.enter 中的 test.enter.Ente
rTestB 已过时
class EnterTest<TA extends EnterTestB,TB extends EnterTestC,TC extends EnterTest
B & EnterTestC,TD> {
^
2 警告
------------------------------------------------------------
package test.enter;
class EnterTest<TA extends EnterTestB,TB extends EnterTestC,TC extends EnterTestB & EnterTestC,TD> {
class ClassA{}
static class ClassB{}
static void methodA() {
class LocalClass{}
}
void methodB() {
class LocalClass{}
}
/**
*
* @deprecated //这个东西在读进"}"后没有清除,遗留给了EnterTestB
*/
}
class EnterTestB {
static class ClassB{}
}
interface EnterTestC {}