-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
24
-
None
In the ClassFile API, we require the access flags for a method to be passed upon method creation, and this flag's static bit cannot be modified later. This approach implies that a call withFlags on a method builder may unexpectedly throw IllegalArgumentException. We should find the correct locations to document this IAE behavior.
An alternative way might be to throw IllegalStateException if we try to pass something dependent on access flags before the flags are set and specify, but that might be problematic as well.
An alternative way might be to throw IllegalStateException if we try to pass something dependent on access flags before the flags are set and specify, but that might be problematic as well.
- blocks
-
JDK-8335937 ClassFile API transform documentation cleanup
- Open
- duplicates
-
JDK-8336777 BufferedMethodBuilder not initialized with static flag
- Resolved
- relates to
-
JDK-8336777 BufferedMethodBuilder not initialized with static flag
- Resolved