Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
class MyString { @Delegate String str } assert MyString != null
The code above fails with the error below
Caught: java.lang.ClassFormatError: Code attribute in native or abstract methods in class file MyString
It happens because String class has a native intern(). The delegate method that @Delegate adds to MyString continues to be marked native and now has code body added to it, which causes the ClassFormatError.