forked from eclipse-jdt/eclipse.jdt.core
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Error IDs for problems unique to javac
This causes 6 regerssions because 'possible this escape' is now reported. Signed-off-by: David Thompson <[email protected]>
- Loading branch information
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
org.eclipse.jdt.core.javac/src/org/eclipse/jdt/internal/javac/JavacProblemIds.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2024 Red Hat Inc. and others. | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License 2.0 | ||
* which accompanies this distribution, and is available at | ||
* https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* Red Hat Inc. - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.jdt.internal.javac; | ||
|
||
/** | ||
* Constant IDs for problems that don't have a corresponding diagnostic in ECJ. | ||
* This was Alex's idea. | ||
*/ | ||
public class JavacProblemIds { | ||
|
||
private JavacProblemIds() {} | ||
|
||
/// some large number, I chose this from the Wikipedia prime page for fun | ||
private static final int BaseJavacProblemId = 39916801; | ||
|
||
public static final int PossibleThisEscape = BaseJavacProblemId + 1; | ||
public static final int PossibleThisEscapeLocation = BaseJavacProblemId + 2; | ||
public static final int PossibleLossOfPrescision = BaseJavacProblemId + 3; | ||
public static final int AuxiliaryClassAccessedOutsideItsSourceFile = BaseJavacProblemId + 4; | ||
|
||
} |