-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P3
-
Affects Version/s: 9
-
Component/s: tools
-
b144
-
Verified
JShell API: compilation fails if class, method or field is annotated and has modifiers: public, protected, static...
The problem is MaskCommentsAndModifiers erases them incorrectly.
-> @A public void f() {}
| Error:
| repeated modifier
| @A public void f() {}
| ^
--------
Note: full annotation syntax should be supported.
Note: int public y -- is treated as int y
The problem is MaskCommentsAndModifiers erases them incorrectly.
-> @A public void f() {}
| Error:
| repeated modifier
| @A public void f() {}
| ^
--------
Note: full annotation syntax should be supported.
Note: int public y -- is treated as int y
- duplicates
-
JDK-8131028 JShell: Annotation on public method does not work if annotation is placed before public modifier
-
- Closed
-