Community
Participate
Working Groups
This code @NonNullByDefault public class Fut { Object test() throws IOException { Optional<Object> res = Optional.ofNullable(null/*1*/); if( !res.isPresent() ){ throw new RuntimeException(); } return res.get();/*2*/ } } I have this compiling without AspectJ with no problems. The eea file for Optional is like this: class java/util/Optional get ()TT; ()T1T; ofNullable <T:Ljava/lang/Object;>(TT;)Ljava/util/Optional<TT;>; <T:Ljava/lang/Object;>(T0T;)Ljava/util/Optional<TT;>; Now when i add the AspectJ nature, i have problems in /*1*/. In my code base, i have as well the problem in /*2*/. Not triggered in this example.
I set to critical, as it influences all java projects
You didn't include the exact error message but I've seen something that appears to now be resolved with 1.8.10. Please grab an AJDT from the 4.6 dev update site and let me know if it helps?
Sorry, i will not test. I removed AspectJ from my projects. You may close this ticket.
The big JDT upgrade for 1.8.10 included a fix for something like this. I'm presuming that addressed this problem. If anyone hits this in future, please reopen.