Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 53334 Details for
Bug 163600
[compiler] Internal references to static inner classes fail in presence of assert keyword
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Test case
Chicken.java (text/plain), 1.15 KB, created by
Eddie Galvez
on 2006-11-06 16:42:48 EST
(
hide
)
Description:
Test case
Filename:
MIME Type:
Creator:
Eddie Galvez
Created:
2006-11-06 16:42:48 EST
Size:
1.15 KB
patch
obsolete
>package org.innocuous; > >public class Chicken { > > public static class Foo > { > public void myMethod(boolean trash) > { > System.out.println("Expecting class Foo"); > Class c = Foo.class; > System.out.println("Got the class " + c); > } > } > > public static class Bar > { > public void myMethod(boolean doAssert) > { > System.out.println("Expecting class Bar"); > Class c = Bar.class; > System.out.println("Got the class " + c); > // Any one of the following things will make the test fail and load the wrong class > // Even if the assert is skipped by a conditional. > assert c.getName().endsWith("Bar"); > //assert c != null; > //assert Class.class != null; > /* > int i = 1; > assert i != 2; > */ > /* > if (doAssert) > assert c.getName().endsWith("Bar"); > */ > } > } > > public static void main(String[] args) { > new Foo().myMethod(false); > new Bar().myMethod(false); > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 163600
: 53334 |
53385
|
53405
|
53523
|
53524