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 139321 Details for
Bug 279715
[inline] Inline Constant and Inline Local Variable are missing parentheses for extended '-' chains
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Test
279715_patch.txt (text/plain), 2.57 KB, created by
Markus Keller
on 2009-06-16 13:09:26 EDT
(
hide
)
Description:
Test
Filename:
MIME Type:
Creator:
Markus Keller
Created:
2009-06-16 13:09:26 EDT
Size:
2.57 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.ui.tests.refactoring >Index: test cases/org/eclipse/jdt/ui/tests/refactoring/InlineConstantTests.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/refactoring/InlineConstantTests.java,v >retrieving revision 1.34 >diff -u -r1.34 InlineConstantTests.java >--- test cases/org/eclipse/jdt/ui/tests/refactoring/InlineConstantTests.java 23 Feb 2009 13:32:17 -0000 1.34 >+++ test cases/org/eclipse/jdt/ui/tests/refactoring/InlineConstantTests.java 16 Jun 2009 17:11:00 -0000 >@@ -292,6 +292,10 @@ > helper1("p.A", 4, 23, 4, 28, true, true); > } > >+ public void test33() throws Exception { // test for https://bugs.eclipse.org/bugs/show_bug.cgi?id=279715 >+ helper1("p.A", 5, 29, 5, 30, true, true); >+ } >+ > // -- testing failing preconditions > > public void testFail0() throws Exception { >Index: resources/InlineConstant/canInline/test33/in/A.java >=================================================================== >RCS file: resources/InlineConstant/canInline/test33/in/A.java >diff -N resources/InlineConstant/canInline/test33/in/A.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ resources/InlineConstant/canInline/test33/in/A.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,18 @@ >+package p; >+ >+class A { >+ public static final int B= 12; >+ public static final int C= B - 1; //inline C >+ public static final int K= 99; >+ >+ public static void main(String[] args) { >+ int f1= K - 1 - C; >+ int f2= K - C - C - C; >+ >+ int x1= K + C; >+ int x2= K - C; >+ int x3= K + 1 - C; >+ int x4= K - 1 + C; >+ int x5= K + 1 + C - C - C; >+ } >+} >Index: resources/InlineConstant/canInline/test33/out/A.java >=================================================================== >RCS file: resources/InlineConstant/canInline/test33/out/A.java >diff -N resources/InlineConstant/canInline/test33/out/A.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ resources/InlineConstant/canInline/test33/out/A.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,17 @@ >+package p; >+ >+class A { >+ public static final int B= 12; >+ public static final int K= 99; >+ >+ public static void main(String[] args) { >+ int f1= K - 1 - (B - 1); >+ int f2= K - (B - 1) - (B - 1) - (B - 1); >+ >+ int x1= K + (B - 1); >+ int x2= K - (B - 1); >+ int x3= K + 1 - (B - 1); >+ int x4= K - 1 + (B - 1); >+ int x5= K + 1 + (B - 1) - (B - 1) - (B - 1); >+ } >+}
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 279715
: 139321 |
139411