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 228237 Details for
Bug 364045
ProblemReporter.referenceContext is not reset on all paths
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 case
clipboard.txt (text/plain), 2.78 KB, created by
Jesper Moller
on 2013-03-11 22:26:04 EDT
(
hide
)
Description:
Test case
Filename:
MIME Type:
Creator:
Jesper Moller
Created:
2013-03-11 22:26:04 EDT
Size:
2.78 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core.tests.compiler >diff --git src/org/eclipse/jdt/core/tests/compiler/regression/JavadocBugsTest.java src/org/eclipse/jdt/core/tests/compiler/regression/JavadocBugsTest.java >index 9d9cf1d..73c15a5 100644 >--- src/org/eclipse/jdt/core/tests/compiler/regression/JavadocBugsTest.java >+++ src/org/eclipse/jdt/core/tests/compiler/regression/JavadocBugsTest.java >@@ -1,5 +1,5 @@ > /******************************************************************************* >- * Copyright (c) 2000, 2012 IBM Corporation and others. >+ * Copyright (c) 2000, 2013 IBM Corporation and others. > * All rights reserved. This program and the accompanying materials > * are made available under the terms of the Eclipse Public License v1.0 > * which accompanies this distribution, and is available at >@@ -8,9 +8,11 @@ > * Contributors: > * IBM Corporation - initial API and implementation > * Stephan Herrmann <stephan@cs.tu-berlin.de> - Contribution for bug 185682 - Increment/decrement operators mark local variables as read >+ * Jesper Steen Moller <jesper@selskabet.org> - Contribution for bug 360045 - ProblemReporter.referenceContext is not reset on all paths > *******************************************************************************/ > package org.eclipse.jdt.core.tests.compiler.regression; > >+import java.io.File; > import java.util.Map; > > import junit.framework.Test; >@@ -8880,5 +8882,46 @@ > } > ); > } >+// ProblemReporter.referenceContext is not reset on all paths >+public void testBug364045() { >+ String path = this.getCompilerTestsPluginDirectoryPath() + File.separator + "workspace" + File.separator + "Test364045.jar"; >+ String[] defaultLibs = getDefaultClassPaths(); >+ int len = defaultLibs.length; >+ String[] libs = new String[len+1]; >+ System.arraycopy(defaultLibs, 0, libs, 0, len); >+ libs[len] = path; >+ >+ Map options = getCompilerOptions(); >+ options.put(CompilerOptions.OPTION_ReportInvalidJavadocTags, CompilerOptions.DISABLED); >+ >+ runNegativeTest( >+ new String[] { >+ "A.java", >+ " /**\n"+ >+ " * @dude\n" + >+ " */\n" + >+ "public class A {\n"+ >+ " public static aPackage.BadInterface ifc = null;/**\n"+ >+ " * @param\n" + >+ " */\n" + >+ " public void fine(Object bad) {\n" + >+ " // Boring!\n"+ >+ " };\n" + >+ " private Object data = ifc.badMethod(32,12);\n" + >+ " public void fleep(Object bad) {\n" + >+ " ((aPackage.BadInterface)bad).badMethod(1, 2, null, null);\n"+ >+ " };\n" + >+ "}\n" >+ }, >+ "----------\n" + >+ "1. ERROR in A.java (at line 0)\n" + >+ " /**\n" + >+ " ^\n" + >+ "The class file BadInterface contains a signature \'(hLjava/lang/Long;[FLaPackage/BadInterface;)LaPackage/BadInterface;\' ill-formed at position 1\n" + >+ "----------\n", >+ libs, >+ true, >+ options); >+} > } >
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 364045
: 228237 |
228238