question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"import" is a reserved word in Java

See original GitHub issue

All AWS constructs have a static import method to allow bringing-in resources defined externally. However, import is reserved in Java (and possibly in other languages).

In the interim the jsii compiler will simply add an _ at the end of the method name, but we need to find a new name for the method and rename across the codebase.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:20 (20 by maintainers)

github_iconTop GitHub Comments

1reaction
eladbcommented, Jan 8, 2019

Also, we should standardize the naming for importFromContext (which I argued should be importFromEnvironment).

0reactions
eladbcommented, Apr 15, 2019

Superseded by #2273

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reserved Words in Java
List of Reserved Java Keywords ; implements, import, instanceof, int, interface ; native, new, null, package, private ; public, return, short ...
Read more >
Java Keywords
Java Reserved Keywords ; native, Specifies that a method is not implemented in the same Java source file (but in another language) ;...
Read more >
What are Java Reserved Words?
Java reserved words are keywords that are reserved by Java functions or other uses that cannot be used as identifiers (e.g., variable names, ......
Read more >
Java Reserved Keywords
import, Used to include or reference other packages/classes into the program. ; instanceOf, Used to check if the given object is an instance...
Read more >
Reserved Words in Java Explained - YouTube
In this video, I am talking about Reserved words in Java.In the Java programming language reserved words are keywords that have a predefined ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found