Bug 364485 - Runtime IllegalAccessError during a cross plugin call in the same package (from an innerclass defined in the subclass) to a protected method (defined in the superclass).
Summary: Runtime IllegalAccessError during a cross plugin call in the same package (fr...
Status: VERIFIED DUPLICATE of bug 152568
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.8   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 3.8 M5   Edit
Assignee: Srikanth Sankaran CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-22 11:10 EST by Levente Mészáros CLA
Modified: 2012-01-23 10:04 EST (History)
3 users (show)

See Also:


Attachments
Two simple eclipse plugins triggering the bug (2.82 KB, application/octet-stream)
2011-11-23 03:51 EST, Levente Mészáros CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Levente Mészáros CLA 2011-11-22 11:10:02 EST
Build Identifier: M20110909-1335

This problem should either be detected at compile time or should not cause a runtime error at all.

Reproducible: Always

Steps to Reproduce:
1. Create plugin A.
2. Create class SUPER in package P.
3. Create protected method M in SUPER.
4. Create plugin B.
5. Create class SUB derived from SUPER in package P.
6. Create inner class INNER in SUB.
7. Create method N in INNER that calls the method M in SUB inherited from SUPER.
Comment 1 DJ Houghton CLA 2011-11-22 11:13:03 EST
Please attach the stack trace here for more details. Thanks.
Comment 2 Srikanth Sankaran CLA 2011-11-22 23:35:55 EST
Please attach a small test case that shows the problem.
Unless it is absolutely needed, eliminate plugins and
all eclipse'isms and provide a stand alone java test case.
If you are able to put together a small java test case,
document how the latest javac compiler behaves, TIA.
Comment 3 Levente Mészáros CLA 2011-11-23 03:50:21 EST
Here is a stack trace:

java.lang.IllegalAccessError: tried to access method p.Super.m()V from class p.Sub$1
	at p.Sub$1.run(Sub.java:10)
	at p.Sub.test(Sub.java:12)
	at p.Sub.earlyStartup(Sub.java:17)
	at org.eclipse.ui.internal.EarlyStartupRunnable.runEarlyStartup(EarlyStartupRunnable.java:87)
	at org.eclipse.ui.internal.EarlyStartupRunnable.run(EarlyStartupRunnable.java:66)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.ui.internal.Workbench$63.run(Workbench.java:2465)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Comment 4 Levente Mészáros CLA 2011-11-23 03:51:13 EST
Created attachment 207403 [details]
Two simple eclipse plugins triggering the bug
Comment 5 Srikanth Sankaran CLA 2011-11-23 09:28:02 EST
(In reply to comment #4)
> Created attachment 207403 [details]
> Two simple eclipse plugins triggering the bug

Thanks, I'll take a look.
Comment 6 Srikanth Sankaran CLA 2012-01-11 02:46:38 EST
Same issue as bug 152568 which was closed as WONTFIX.

*** This bug has been marked as a duplicate of bug 152568 ***
Comment 7 Jay Arthanareeswaran CLA 2012-01-23 10:04:44 EST
Verified for 3.8M5