Bug 478003 - NullPointerException with generic inter type method declaration
Summary: NullPointerException with generic inter type method declaration
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.8.7   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: 1.8.8   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-21 17:52 EDT by Andrey Verbin CLA
Modified: 2015-11-18 17:50 EST (History)
1 user (show)

See Also:


Attachments
dump (47.67 KB, text/plain)
2015-09-21 17:52 EDT, Andrey Verbin CLA
no flags Details
relevant source files (2.98 KB, application/zip)
2015-09-21 17:54 EDT, Andrey Verbin CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Verbin CLA 2015-09-21 17:52:48 EDT
Created attachment 256733 [details]
dump

Below snippet produce NullPointerException. If I replace line

public OrientDBValue OrientKey<T>.getOrientDBValue()

with 

public OrientDBValue OrientKey.getOrientDBValue()

it compiles ok

import com.flickbay.orientdb.OrientKey;

public aspect OrientDBKeyIO {

    public interface IO<T> {
        OrientDBValue<T> getOrientDBValue();
    }

    declare parents : OrientKey implements IO;

    public SimpleOrientDBValue OrientKey<T>.value = null;

    public OrientDBValue OrientKey<T>.getOrientDBValue() { return this.value; }
}
Comment 1 Andrey Verbin CLA 2015-09-21 17:54:28 EDT
Created attachment 256734 [details]
relevant source files
Comment 2 Andrew Clement CLA 2015-11-18 17:50:09 EST
Thanks for the testcode. Pushed a fix.